<?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: A query that will select features from a file geodatabase field containing specific characters in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742162#M312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given the structure of your string, and what you are trying to achieve, I don't think using &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;LIKE&lt;/SPAN&gt; with wildcards is the best approach.&amp;nbsp; Using the same documentation referenced by &lt;A href="https://community.esri.com/migrated-users/193588"&gt;Abdullah Anter&lt;/A&gt;‌, I suggest using &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SUBSTRING&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;SUBSTRING&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;field &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;19&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'B'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'D'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 16:41:43 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2017-03-16T16:41:43Z</dc:date>
    <item>
      <title>A query that will select features from a file geodatabase field containing specific characters</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742160#M310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I’m trying to write a query that will select features from a file geodatabase string field containing specific characters. The format of the string is “12_XYZ_XYZ_WXYZ_A_C01C_+##” The specific part I am trying to search for is the first letter C, which describes what that particular feature is. It can also be A, B, or D. I need a way to select all the features that contain either “A”, “B”, and so on. I’ve tried several different queries using *, ?, and % as wildcards but none have worked so far. Any assistance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742160#M310</guid>
      <dc:creator>JonathanSanford</dc:creator>
      <dc:date>2017-03-15T20:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: A query that will select features from a file geodatabase field containing specific characters</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742161#M311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read that link it will be helpful:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/sql-reference-for-query-expressions-used-in-arcgis.htm"&gt;SQL reference for query expressions used in ArcGIS—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;read&lt;STRONG&gt; LIKE Expressions&lt;/STRONG&gt; in&amp;nbsp;the string paragraph.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The wildcards you use to conduct a partial string search also depend on the data source you are querying. For example, in a file-based or ArcSDE geodatabase data source, this expression would select Mississippi and Missouri among USA state names:&lt;/P&gt;&lt;PRE&gt;STATE_NAME LIKE 'Miss%'&lt;/PRE&gt;&lt;P&gt;The percent symbol (%) means that anything is acceptable in its place—one character, a hundred characters, or no character. The wildcards you use to query personal geodatabases are asterisk (*) for any number of characters and question mark (?) for one character.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742161#M311</guid>
      <dc:creator>AbdullahAnter</dc:creator>
      <dc:date>2017-03-15T23:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: A query that will select features from a file geodatabase field containing specific characters</title>
      <link>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742162#M312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given the structure of your string, and what you are trying to achieve, I don't think using &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;LIKE&lt;/SPAN&gt; with wildcards is the best approach.&amp;nbsp; Using the same documentation referenced by &lt;A href="https://community.esri.com/migrated-users/193588"&gt;Abdullah Anter&lt;/A&gt;‌, I suggest using &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SUBSTRING&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;SUBSTRING&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;field &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;19&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'B'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'D'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/a-query-that-will-select-features-from-a-file/m-p/742162#M312</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-03-16T16:41:43Z</dc:date>
    </item>
  </channel>
</rss>

