<?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: Doubt on &amp;quot;Select By Attributes&amp;quot; In ArcMap in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260707#M14892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because SQL compares strings by&amp;nbsp;&lt;A href="http://www.asciitable.com/"&gt;Ascii Values&lt;/A&gt;&amp;nbsp;when using comparison operators.&amp;nbsp; If you insert a wildcard -- the representative strings returned are included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"p" &amp;gt; "P"&amp;nbsp; &amp;nbsp;would return true&amp;nbsp; -- the decimal value for "p" is 112 and the decimal value for "P" is 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name &amp;gt;= "P%" would compare name with the returned values of "Pxxxxxx"&amp;nbsp; So "P" by itself will be excluded, "Paulding" would be included as well as "p" (lower case has a higher ascii value than uppercase).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 15:24:01 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2017-10-30T15:24:01Z</dc:date>
    <item>
      <title>Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260705#M14890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;What is sounds very strange to me has probably a meaning for an expert in SQL or in the attribute selection in ArcGIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why, if I search for all the records "greater or equal than" a letter, the letter is included in the search but if I search for "smaller or equal than" a letter, this is excluded?&lt;/P&gt;&lt;P&gt;It works the same either with or without %.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381872_pastedImage_1.png" style="width: 462px; height: 290px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260705#M14890</guid>
      <dc:creator>PanGIS</dc:creator>
      <dc:date>2017-10-30T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260706#M14891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drop the % sign in both of your queries.&amp;nbsp; Instead&amp;nbsp; of value&amp;nbsp;&amp;gt;= 'P%' just use &amp;gt;= 'P'&amp;nbsp; That will get you everything that starts with 'P' through Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use &amp;lt;= 'P', you'll get everything from A-P as well as those values that start with 0-9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use &amp;lt; 'A' all the time to find numerically 'named' streets...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260706#M14891</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-10-30T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260707#M14892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because SQL compares strings by&amp;nbsp;&lt;A href="http://www.asciitable.com/"&gt;Ascii Values&lt;/A&gt;&amp;nbsp;when using comparison operators.&amp;nbsp; If you insert a wildcard -- the representative strings returned are included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"p" &amp;gt; "P"&amp;nbsp; &amp;nbsp;would return true&amp;nbsp; -- the decimal value for "p" is 112 and the decimal value for "P" is 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name &amp;gt;= "P%" would compare name with the returned values of "Pxxxxxx"&amp;nbsp; So "P" by itself will be excluded, "Paulding" would be included as well as "p" (lower case has a higher ascii value than uppercase).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260707#M14892</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-30T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260708#M14893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4422"&gt;Joe &lt;/A&gt;&lt;/P&gt;&lt;P&gt;even if I drop the % the result I get is exactly the same &amp;gt;= will include P and &amp;lt;= will exclude it.&lt;/P&gt;&lt;P&gt;A bit naive as question maybe, but if I type = my brain expects to get the "P" anyway, but my brain doesn't work in SQL. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381873_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/381887_pastedImage_5.png" style="width: 237px; height: 226px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/5768"&gt;Ted ,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you opened the door of a new world &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Would you answer apply without considering the wildcard but the simple P?&lt;/P&gt;&lt;P&gt;(Maybe you already answer here above but I need you to confirm &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the lowercase and it is here!! :&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/381888_pastedImage_10.png" style="width: 211px; height: 281px;" /&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/381889_pastedImage_11.png" style="width: 200px; height: 283px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260708#M14893</guid>
      <dc:creator>PanGIS</dc:creator>
      <dc:date>2017-10-30T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260709#M14894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried it with &amp;lt;= 'P%' on some street names; I got two streets named 'P' and no other streets that start with 'P'.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get ALL the streets that start with 'P' using StreetName &amp;lt; 'Q' and of course all the others that go along with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get&amp;nbsp;all the streets that start with 'P' long with all streets less than 'P' I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StreetName &amp;lt;= 'P%' or StreetName like 'P%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your objective with these queries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/168514"&gt;Pan gis&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:17:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260709#M14894</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2017-10-30T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260710#M14895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without the wildcard you would be comparing ascii value of P to ascii value of P so "in a sense" you are filtering name &amp;gt;= 80 or name &amp;lt;= 80.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please bear in mind a space also has a value....and in some database would influence the results:&amp;nbsp; &amp;nbsp; P[space] &amp;lt;&amp;gt; P&amp;nbsp; &amp;nbsp; "P " &amp;lt;&amp;gt; "P&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So technically my answer to you is yes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it can get complicated real quickly with other bumps in the road that I did not mention --- character sets that you are using will have some influence ... My assumption you are using the standard Latin-1 set.&amp;nbsp; Another bump in road is the database you are using.... some database use a dictionary for string comparison and others use a binary operation.&amp;nbsp; So in dictionary sense my example with space would not be correct&amp;nbsp; "P " = "P" whereas in a database using binary operations my answer would be correct&amp;nbsp; "P " &amp;lt;&amp;gt; "P".&amp;nbsp; I was trying real hard in keeping the answer simple.....&amp;nbsp; When you introduce "NULL" values there are even more issues!&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260710#M14895</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-30T16:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260711#M14896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I use coding when I am string comparing stuff using &amp;lt; &amp;gt; operators on letters..... then I can compare numbers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/8452961/convert-string-to-ascii-value-python" title="https://stackoverflow.com/questions/8452961/convert-string-to-ascii-value-python"&gt;Convert string to ASCII value python - Stack Overflow&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260711#M14896</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2017-10-30T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260712#M14897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I encourage you to read &lt;A class="link-titled" href="https://stackoverflow.com/questions/543580/equals-vs-like" title="https://stackoverflow.com/questions/543580/equals-vs-like"&gt;sql - Equals(=) vs. LIKE - Stack Overflow&lt;/A&gt;, I think it will help you understand your results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260712#M14897</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-10-31T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on "Select By Attributes" In ArcMap</title>
      <link>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260713#M14898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try name &amp;lt;= 'Pz"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will find everything that start with a P (accept when it start with Pz) . I do not remember what is the next ascii after z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 07:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/doubt-on-quot-select-by-attributes-quot-in-arcmap/m-p/260713#M14898</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2017-11-01T07:46:43Z</dc:date>
    </item>
  </channel>
</rss>

