<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query Syntax in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219716#M5511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;THanks again...have a great weekend....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Apr 2011 19:19:14 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2011-04-22T19:19:14Z</dc:date>
    <item>
      <title>Query Syntax</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219712#M5507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this might not be ArcGIS API question and rather more a general programming question but I have been all over silverlight forums and keep getting references to LINQ query structure...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where Equal to is represented with ==&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Greater than equal to with &amp;gt;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this is more in the body of the ESRI.ArcGIS.Client.Tasks.Query and they dont seem to work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PrecinctValue2 is a variable set to result of another query...its set to a specific attribute value from that found record...there will be only 1 record returned..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; query.Where = String.Format("ELEM_TEXT LIKE '%{0}%'", PrecinctValue2.Trim)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I need EQUAL to the value in the string....I have been trying == instead of the LIKE..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This DOES NOT work...Any quick thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; query.Where = String.Format("ELEM_TEXT == '%{0}%'", PrecinctValue2.Trim)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any quick thoughts....no worries either way....just thought I would give this a try....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 12:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219712#M5507</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-22T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query Syntax</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219713#M5508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use a single equal sign in the where clause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
query.Where = "ELEM_TEXT = '" + PrecinctValue2.Trim + "'";
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note that are there are single quote marks around precinctvalue2 since this is a string field.&amp;nbsp; Numeric (and date types I believe) do not need these.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219713#M5508</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2021-12-11T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query Syntax</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219714#M5509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you terry....very apprecited...sort fo feel stupid....so much more simple syntax than teh example I as using....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I assume that you can simply use &amp;gt;=, &amp;lt;=, &amp;gt;, &amp;lt;&amp;nbsp;&amp;nbsp; symbology as well to create Greater Than Equal to, Less THan Equal to, Greater THan, Less Than...making sure the variable is numeric...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THanks Again...very appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 15:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219714#M5509</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-22T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query Syntax</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219715#M5510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yep just use &amp;gt;=, &amp;lt;, etc.. in the string you set for the Where property.&amp;nbsp; Depending on the underlying data source you can also use &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;between &amp;lt;number&amp;gt; and &amp;lt;number&amp;gt; or between '&amp;lt;date&amp;gt;' and '&amp;lt;date&amp;gt;'.&amp;nbsp; Dates are enclosed in single quote marks like a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Terry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 16:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219715#M5510</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2011-04-22T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query Syntax</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219716#M5511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;THanks again...have a great weekend....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 19:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/query-syntax/m-p/219716#M5511</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-22T19:19:14Z</dc:date>
    </item>
  </channel>
</rss>

