<?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: SQL Statements using 'Like' in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64069#M3685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So using the same equation you just posted I was able to select contours that were divisible by 1000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See screenshots below for the Query Box as well as the output result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you replicate what I did and still fail try flipping the equation ie. (this did not work for me but the original poster of the thread said it worked for him)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#000000;"&gt;0 = [ELEVATION] MOD 1000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source:&lt;/SPAN&gt;&lt;A href="http://lists.directionsmag.com/discussion/read.php?f=26&amp;amp;t=30698&amp;amp;a=1"&gt;http://lists.directionsmag.com/discussion/read.php?f=26&amp;amp;t=30698&amp;amp;a=1&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 17:47:47 GMT</pubDate>
    <dc:creator>NelsonDe_Miranda</dc:creator>
    <dc:date>2011-10-27T17:47:47Z</dc:date>
    <item>
      <title>SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64066#M3682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to use the wildcard '%' on a numeric field (integer, double, etc) while using the 'like' operator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to select all numbers that end in zero.&amp;nbsp; I know that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"ELEVATION" LIKE '%0'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;works for strings.&amp;nbsp; I would like to be able to use the expression on a numeric field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 15:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64066#M3682</guid>
      <dc:creator>JohnBrand</dc:creator>
      <dc:date>2011-01-06T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64067#M3683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To my knowledge there isn't a simple straight forward way as that to select values from a number field:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you can:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Convert your "numeric field to text" - as you mentioned above &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use Mod Calculations and calculate a new field which will determine whether or not your number ends in a 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOD ( "Elevation" , 10) = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What this simple calc does is it selects all the values in the elevation that are divisible by 10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="font-style: italic;"&gt;i.e. numbers ending in 0.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nelson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 19:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64067#M3683</guid>
      <dc:creator>NelsonDe_Miranda</dc:creator>
      <dc:date>2011-01-07T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64068#M3684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So why when I try MOD ( "intContour" , 1000) = 0 in a Select by Attributes query on a personal geodatabase feature class, I can only get "Syntax error (missing operator)"&amp;nbsp; no matter where I place " or spaces or brackets"? It didn't seem to matter that I created "intContour" as an interger field from "Contour", a double field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 17:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64068#M3684</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2011-10-27T17:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64069#M3685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So using the same equation you just posted I was able to select contours that were divisible by 1000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See screenshots below for the Query Box as well as the output result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you replicate what I did and still fail try flipping the equation ie. (this did not work for me but the original poster of the thread said it worked for him)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#000000;"&gt;0 = [ELEVATION] MOD 1000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source:&lt;/SPAN&gt;&lt;A href="http://lists.directionsmag.com/discussion/read.php?f=26&amp;amp;t=30698&amp;amp;a=1"&gt;http://lists.directionsmag.com/discussion/read.php?f=26&amp;amp;t=30698&amp;amp;a=1&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 17:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64069#M3685</guid>
      <dc:creator>NelsonDe_Miranda</dc:creator>
      <dc:date>2011-10-27T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64070#M3686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still didn't work. This is ArcGIS 10, sp3.&amp;nbsp; Is there some different syntax MS Access requires because this is from a personal geodatabase feature class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the flipped equation did work for me!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 18:07:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64070#M3686</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2011-10-27T18:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64071#M3687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Summary:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FGDB users use: MOD ( "Elevation" , 1000) = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Personal geodatabase users use: &lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;0 = [ELEVATION] MOD 1000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax difference is because MSAccess does not understand the MOD Operator in the same way the file geodatabase does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to the MSOffice help page showing the proper syntax for MOD within an Access environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://office.microsoft.com/en-us/access-help/HV080756430.aspx"&gt;http://office.microsoft.com/en-us/access-help/HV080756430.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 18:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64071#M3687</guid>
      <dc:creator>NelsonDe_Miranda</dc:creator>
      <dc:date>2011-10-27T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statements using 'Like'</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64072#M3688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks - Nelson.&amp;nbsp; When I typed MOD into MS Access Help Search I got pages of unrelated crap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [intContour] MOD 1000 = 0&amp;nbsp; worked for me as well.&amp;nbsp; Didn't matter in I used "Contour", the double version of my item or "intContour" the short integer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 20:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-statements-using-like/m-p/64072#M3688</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2011-10-27T20:00:09Z</dc:date>
    </item>
  </channel>
</rss>

