<?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 a string field for numbers in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632363#M35716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've found that FGDBs don't like the 'LIKE' statement;&amp;nbsp; In a pgdb you can use Name like '[0-9]*'&amp;nbsp; to find those that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;start&lt;/SPAN&gt;&lt;SPAN&gt; with a number.&amp;nbsp; I don't know if that is a VB only type of query or not, so your mileage may vary in version 10.&amp;nbsp; If that works for you, so will Name like '[A-Z]*'&amp;nbsp; .&amp;nbsp; For a SDE GDB with a SQL Server back end you'll need to use % instead of *.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 20:37:34 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2012-01-12T20:37:34Z</dc:date>
    <item>
      <title>Query a string field for numbers</title>
      <link>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632361#M35714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are encountering a geocoding issue with a client's road centerline data. They are using NENA standard road name fields, but some of the value in the STREET_NAME field are "2095", "1875", "1560", etc. The problem is 1) while the fields are NENA standard these values are not, and 2) the geocoder is interpreting these values as numbers and thus barfing all over itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So...and I'm not holding my breath...is there a way to query the STREET_NAME field, which is defined as text, for "numeric" values, or numbers stored as text, WITHOUT writing a script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using ArcEditor 10.0 SP 2, Windows XP Pro SP3.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 16:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632361#M35714</guid>
      <dc:creator>GlennKammerer</dc:creator>
      <dc:date>2012-01-12T16:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query a string field for numbers</title>
      <link>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632362#M35715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We are encountering a geocoding issue with a client's road centerline data. They are using NENA standard road name fields, but some of the value in the STREET_NAME field are "2095", "1875", "1560", etc. The problem is 1) while the fields are NENA standard these values are not, and 2) the geocoder is interpreting these values as numbers and thus barfing all over itself.&lt;BR /&gt;&lt;BR /&gt;So...and I'm not holding my breath...is there a way to query the STREET_NAME field, which is defined as text, for "numeric" values, or numbers stored as text, WITHOUT writing a script?&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Using ArcEditor 10.0 SP 2, Windows XP Pro SP3.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You did not say what kind of database you are using, and solving your problem may be SQL specific.&amp;nbsp; In a file geodatabase I tried this expression on a string field and it seemed to work properly.&amp;nbsp; See if something like this works for you (perhaps export to a fgdb if your native source does not support the cast operation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CAST("STREET_NAME" AS FLOAT) &amp;lt; 9999&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 19:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632362#M35715</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-01-12T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query a string field for numbers</title>
      <link>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632363#M35716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've found that FGDBs don't like the 'LIKE' statement;&amp;nbsp; In a pgdb you can use Name like '[0-9]*'&amp;nbsp; to find those that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;start&lt;/SPAN&gt;&lt;SPAN&gt; with a number.&amp;nbsp; I don't know if that is a VB only type of query or not, so your mileage may vary in version 10.&amp;nbsp; If that works for you, so will Name like '[A-Z]*'&amp;nbsp; .&amp;nbsp; For a SDE GDB with a SQL Server back end you'll need to use % instead of *.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 20:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632363#M35716</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2012-01-12T20:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query a string field for numbers</title>
      <link>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632364#M35717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the much delayed follow up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up teaching myself how to do this in Python and used the IsDigit function in Python. Worked like a charm!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you jborgion and rfairhur24 for your replies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 17:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-a-string-field-for-numbers/m-p/632364#M35717</guid>
      <dc:creator>GlennKammerer</dc:creator>
      <dc:date>2012-01-27T17:48:08Z</dc:date>
    </item>
  </channel>
</rss>

