<?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: definition query in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496564#M28205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, that definition query (&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;'% TH %') will not match your original example ('&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;PETROLEUM WELL NO 1 TH'&lt;/SPAN&gt;), which does not end in a space.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2016 00:00:25 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2016-07-13T00:00:25Z</dc:date>
    <item>
      <title>definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496559#M28200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering what definition query to use to not display features in a field. For example, field is "Name", data is PETROLEUM WELL NO 1 TH and I do not want features with TH in them displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 20:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496559#M28200</guid>
      <dc:creator>TerryWatson</dc:creator>
      <dc:date>2016-07-12T20:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496560#M28201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignores 'TH' anywhere': "Name" Not Like '%TH%'&lt;/P&gt;&lt;P&gt;Ignores 'TH' only at the end: "Name" Not Like '%TH'&lt;/P&gt;&lt;P&gt;Ignores 'TH' preceded by a space: "Name" Not Like '% TH%'&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A 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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 20:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496560#M28201</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-07-12T20:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496561#M28202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excellent, thank you very much...have a great day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 20:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496561#M28202</guid>
      <dc:creator>TerryWatson</dc:creator>
      <dc:date>2016-07-12T20:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496562#M28203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/building-a-query-expression.htm"&gt;Building a query expression—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NOT&amp;nbsp; YourField LIKE '%TH'&lt;/P&gt;&lt;P&gt;with the appropriate field designators depending on the source table (and I am not sure if NOT has to be outside the field or you can use NOT LIKE... not near Arc* now) But the key is to use a wildcard and TH the example shown is if the field always ends in TH use %TH otherwise %TH% but that will find a whole bunch of others I suspect. So once you have selected those, then NOT switches the selection leaving those behind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT Too slow... never get a coffee mid answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 20:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496562#M28203</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-12T20:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496563#M28204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my case the TH can appear anywhere, and the data is different lengths...looks like I have success with&amp;nbsp;&amp;nbsp;&amp;nbsp; "Name" NOT LIKE '% TH %'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 20:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496563#M28204</guid>
      <dc:creator>TerryWatson</dc:creator>
      <dc:date>2016-07-12T20:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: definition query</title>
      <link>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496564#M28205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, that definition query (&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;'% TH %') will not match your original example ('&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;PETROLEUM WELL NO 1 TH'&lt;/SPAN&gt;), which does not end in a space.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 00:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/definition-query/m-p/496564#M28205</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-07-13T00:00:25Z</dc:date>
    </item>
  </channel>
</rss>

