<?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: SQL queries on attributes in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/sql-queries-on-attributes/m-p/1229463#M4107</link>
    <description>&lt;P&gt;it might be explained by the differences discussed here&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm" target="_blank"&gt;SQL reference for query expressions used in ArcGIS—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 11:10:40 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-11-08T11:10:40Z</dc:date>
    <item>
      <title>SQL queries on attributes</title>
      <link>https://community.esri.com/t5/arcmap-questions/sql-queries-on-attributes/m-p/1229461#M4106</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;I try to automatize quality tests on data (mostly on attributes), the idea is to play python scripts every 2 weeks on 4 datasets in order the 4 data managers can see the warnings on differnt layers/tables and can improve regularly the quality of their data.&lt;/P&gt;&lt;P&gt;What is amazing, is that I did some SQL queries (in "select by attributes") that work on SDE layers but not on my geodatabase layers !!!&lt;/P&gt;&lt;P&gt;my problem is with UNION&lt;/P&gt;&lt;P&gt;I did&amp;nbsp;a query like this one :&lt;/P&gt;&lt;P&gt;WHERE attribute IN (SELECT aa.... UNION SELECT bb.....)&lt;/P&gt;&lt;P&gt;on SDE layers this query works fine&lt;/P&gt;&lt;P&gt;On GDB layers I can do :&lt;/P&gt;&lt;P&gt;WHERE attribute IN (SELECT aa.... )&lt;BR /&gt;WHERE attribute IN (SELECT bb.....)&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;WHERE attribute IN (SELECT aa.... UNION SELECT bb.....)&lt;/P&gt;&lt;P&gt;doesn't work ... I cannot understand why !&lt;/P&gt;&lt;P&gt;Do you have some explanations ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/sql-queries-on-attributes/m-p/1229461#M4106</guid>
      <dc:creator>MaxenceMELIN</dc:creator>
      <dc:date>2022-11-08T10:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL queries on attributes</title>
      <link>https://community.esri.com/t5/arcmap-questions/sql-queries-on-attributes/m-p/1229463#M4107</link>
      <description>&lt;P&gt;it might be explained by the differences discussed here&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm" target="_blank"&gt;SQL reference for query expressions used in ArcGIS—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 11:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/sql-queries-on-attributes/m-p/1229463#M4107</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-11-08T11:10:40Z</dc:date>
    </item>
  </channel>
</rss>

