<?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: Select By Attributes in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312848#M71508</link>
    <description>&lt;P&gt;How about if you use "Contains the text" instead of "is equal to," in the middle drop-down?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 21:14:22 GMT</pubDate>
    <dc:creator>AllenDailey1</dc:creator>
    <dc:date>2023-07-27T21:14:22Z</dc:date>
    <item>
      <title>Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312710#M71498</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working in a feature class over 144,000 address points. And, in the !street number! field a lot of the addresses include a letter indicating an apartment.&amp;nbsp; For example,&amp;nbsp; 1001U and 85b,&amp;nbsp; both lower and Uppercase.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple SQL expression, or another way to select only those addresses, all of them at once?&lt;/P&gt;&lt;P&gt;Any thoughts, or advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 17:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312710#M71498</guid>
      <dc:creator>JasonBagwell1</dc:creator>
      <dc:date>2023-07-27T17:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312747#M71502</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not an expert in SQL, but I looked around a little and found something that worked for me when I tested it.&amp;nbsp; It's the last comment on this page:&amp;nbsp;&lt;A href="https://ask.sqlservercentral.com/questions/1743/how-to-select-records-with-letters-in-an-nvarchar.html" target="_blank"&gt;https://ask.sqlservercentral.com/questions/1743/how-to-select-records-with-letters-in-an-nvarchar.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It looks like this in ArcGIS Pro, select by attributes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllenDailey1_0-1690482826794.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76605i82341508BD91C3B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllenDailey1_0-1690482826794.png" alt="AllenDailey1_0-1690482826794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could add another clause for lower case, as in the last comment on that website above.&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 18:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312747#M71502</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2023-07-27T18:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312846#M71506</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I tried your suggestion, but unfortunately it's not working for me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBagwell1_0-1690492073845.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76619i6E67D4F73548DE43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBagwell1_0-1690492073845.png" alt="JasonBagwell1_0-1690492073845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 21:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312846#M71506</guid>
      <dc:creator>JasonBagwell1</dc:creator>
      <dc:date>2023-07-27T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312848#M71508</link>
      <description>&lt;P&gt;How about if you use "Contains the text" instead of "is equal to," in the middle drop-down?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 21:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312848#M71508</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2023-07-27T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312898#M71514</link>
      <description>&lt;P&gt;The SQL that is allowed in Select Layer By Attributes is quite limited. For example, it can't handle the regex-like queries for "[A-Za-z]" that would search for values containing any letter in "normal" SQL.&lt;/P&gt;&lt;P&gt;What you can do:&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;CAST(YourField AS INTEGER) &amp;gt;= 0&lt;/LI-CODE&gt;&lt;P&gt;and then invert the selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SQL expression will only select values it can convert from string to integer (so all values that don't contain letters), and when you invert that, you get all values containing letters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1690500253382.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76630i84B2F9E6B132EF91/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1690500253382.png" alt="JohannesLindner_0-1690500253382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 23:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1312898#M71514</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-07-27T23:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313064#M71525</link>
      <description>&lt;P&gt;Same thing I'm afraid, but thanks for trying to help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBagwell1_0-1690552655449.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76666iB39977B96AF2DECF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBagwell1_0-1690552655449.png" alt="JasonBagwell1_0-1690552655449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313064#M71525</guid>
      <dc:creator>JasonBagwell1</dc:creator>
      <dc:date>2023-07-28T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313069#M71526</link>
      <description>&lt;P&gt;Johannes, thanks for the suggestion.&amp;nbsp; I've tried it, but I get an 'error' message.&amp;nbsp; Anything you notice that could be the issue.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBagwell1_1-1690552944123.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76668i53DA8E3E470A8552/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBagwell1_1-1690552944123.png" alt="JasonBagwell1_1-1690552944123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 14:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313069#M71526</guid>
      <dc:creator>JasonBagwell1</dc:creator>
      <dc:date>2023-07-28T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313311#M71547</link>
      <description>&lt;P&gt;I tested that expression in a File GDB, but it doesn't seem to work in a shape file. If you're working in an Enterprise GDB, your DBMS also might not be able to handle the expression.&lt;/P&gt;&lt;P&gt;Instead of going back and forth trying to find the right expression for your DBMS, it might be easier to just calculate a new field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Calculate Field
# Field type: Short or Long
# Language: Python 3


# Field =
re.search(".*[A-Za-z].*", !STREETNUM!) is not None

# Code Block
import re&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1690587306095.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76721i0583822B09421096/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1690587306095.png" alt="JohannesLindner_0-1690587306095.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This new field will be 1 if there is a letter in STREETNUM, so you can select by that field:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_1-1690587455493.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76722iEBF14FAC336A3697/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_1-1690587455493.png" alt="JohannesLindner_1-1690587455493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 23:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1313311#M71547</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-07-28T23:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select By Attributes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1316065#M71808</link>
      <description>&lt;P&gt;Thanks Johannes,&lt;/P&gt;&lt;P&gt;That works, and will save me a lot of extra work.&amp;nbsp; I appreciate the help.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/select-by-attributes/m-p/1316065#M71808</guid>
      <dc:creator>JasonBagwell1</dc:creator>
      <dc:date>2023-08-07T15:29:06Z</dc:date>
    </item>
  </channel>
</rss>

