<?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: Using the SQL [charlist] wildcard in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654716#M37056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm at least in ArcMap the position of the % can mean nothing as in something or nothing&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392475_SelectbyAttributes.png" style="width: 620px; height: 221px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2018 00:28:24 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-01-10T00:28:24Z</dc:date>
    <item>
      <title>Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654710#M37050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm (attempting to) use the select by attributes function in a 10.5.1 MXD. I tried both a file GeoDatabase and our Enterprise database The select by list statement does not seem to work. When I put in this –&lt;/P&gt;&lt;P&gt;Taxlot.MapTaxlot LIKE '%[RWT]%'&lt;/P&gt;&lt;P&gt;it does not return any records. I pulled the % off the end as some of the strings end with those letters, and tried using parentheses instead of square brackets. I also tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taxlot.MapTaxlot IN ('%R%', '%W%', '%T%') - which selects nothing and&lt;/P&gt;&lt;P&gt;Taxlot.MapTaxlot NOT IN ('%R%', '%W%', '%T%') - which selects everything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list wildcard seems to be pretty standard in SQL, but I didn't see anything about it in the ESRI documentation (not that that would be the first time I missed something).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tycho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654710#M37050</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2018-01-09T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654711#M37051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some information for you:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/building-a-query-expression.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/building-a-query-expression.htm"&gt;Building a query expression—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Geodatabase uses a * as the wildcard. Also, when searching a string, you need to be careful that your wildcard does not get read as actually part of the string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654711#M37051</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2018-01-09T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654712#M37052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I probably didn't compose my original post very well. It is a FileGeoDB so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM Taxlot_Taxpayers WHERE&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Taxlot.MapTaxlot LIKE '%R%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does return all records in that field that contain an &lt;EM&gt;R&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have now&amp;nbsp;(which works) is:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT * FROM Taxlot_Taxpayers WHERE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Taxlot.MapTaxlot LIKE '%R%' OR Taxlot.MapTaxlot &lt;SPAN&gt;LIKE&amp;nbsp;&lt;/SPAN&gt;'%W%' OR Taxlot.MapTaxlot &lt;SPAN&gt;LIKE&amp;nbsp;&lt;/SPAN&gt;'%T%'&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN style="font-size: 11pt; color: #000000; background-color: transparent; font-weight: 400; text-decoration: none;"&gt;What I want is a shortend version like this (&amp;nbsp;Which should work with SQL):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; font-weight: 400; text-decoration: none; font-size: 11pt;"&gt;Taxlot.MapTaxlot LIKE '%[RWT]%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; font-weight: 400; text-decoration: none; font-size: 11pt;"&gt;It doesn't matter that much with this example, but if I end up with a lot of values it becomes a pain (and is harder to read as well).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;P style="margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 20:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654712#M37052</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2018-01-09T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654713#M37053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a personal geoddatabase (aka access mdb) the&amp;nbsp; asterisk is the universal wild card.&amp;nbsp; However in enterpise and file geodatabases, the percent sign is your guy.&amp;nbsp; However, that said, file geodatabases are not truly SQL compliant, and the your [ ] trick that may work in a SQL db will not work in a file geodatabse.&amp;nbsp; For example, try Like '[0-9]%'&amp;nbsp;(those records that start with a numeric character) in a file gdb and you won't get anything...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 20:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654713#M37053</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-01-09T20:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654714#M37054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 14.66px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Like '%R%W%T%' doesn't work in your filegeodatabase? your inclusion of the square braces certainly doesn't&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 21:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654714#M37054</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-09T21:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654715#M37055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't that just find a record where the field started with 'something', and an R in it, that was then followed by something else,&amp;nbsp;and has W in it and is followed by something else and then has a T, and is followed by something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Tough&lt;STRONG&gt;R&lt;/STRONG&gt;ugby&lt;STRONG&gt;W&lt;/STRONG&gt;ith&lt;STRONG&gt;T&lt;/STRONG&gt;attoos"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My money is on the multiple or statements mentioned earlier: they are a pain, but I think they will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 00:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654715#M37055</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-01-10T00:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654716#M37056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm at least in ArcMap the position of the % can mean nothing as in something or nothing&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/392475_SelectbyAttributes.png" style="width: 620px; height: 221px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 00:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654716#M37056</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-10T00:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654717#M37057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/4422" target="_blank"&gt;Joe Borgione&lt;/A&gt;‌ already mentioned, the file geodatabase is a fairly limited/weak DBMS and it lacks quite a bit of SQL support common in nearly all other "modern" DBMSs, even file-based ones.&amp;nbsp; For your specific situation, the file geodatabase does not support pattern matching, i.e., regular expression-like matching, with the LIKE clause, but of course SQL Server does.&amp;nbsp; In light of that, you will have to go with the expanded OR expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently posted an idea requesting additional support for pattern matching with file geodatabases:&amp;nbsp; &lt;A href="https://community.esri.com/ideas/14378" target="_blank"&gt;https://community.esri.com/ideas/14378&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654717#M37057</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-06-22T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using the SQL [charlist] wildcard</title>
      <link>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654718#M37058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, all.&lt;/P&gt;&lt;P&gt;As I learn more SQL it just gets me into trouble. I will continue on with my clunky coding &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 18:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-the-sql-charlist-wildcard/m-p/654718#M37058</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2018-01-10T18:02:29Z</dc:date>
    </item>
  </channel>
</rss>

