<?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>idea Clarify the docs: Advanced SQL syntax is supported in FGDB views and expression subqueries in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/clarify-the-docs-advanced-sql-syntax-is-supported/idi-p/1243075</link>
    <description>&lt;P&gt;It looks like we can use advanced SQL syntax such as GROUP BY and HAVING in FGDB views and FGDB expression subqueries.&lt;/P&gt;&lt;P&gt;For example, I can create a FGDB &lt;STRONG&gt;view&lt;/STRONG&gt;&amp;nbsp;like this:&lt;/P&gt;&lt;PRE&gt;select
    text_a
from
    table_a
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;group by&lt;/STRONG&gt;&lt;/FONT&gt;
    text_a&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;having&lt;/STRONG&gt;&lt;/FONT&gt; &lt;BR /&gt;    1=1&lt;BR /&gt;&lt;FONT color="#999999"&gt;--I can use &lt;/FONT&gt;&lt;FONT color="#999999"&gt;JOIN&amp;nbsp;in&amp;nbsp;FGDB&amp;nbsp;views too.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And I can create an FGDB &lt;STRONG&gt;SQL expression subquery&lt;/STRONG&gt; like this:&lt;/P&gt;&lt;PRE&gt;id_a in (select id_b from table_b &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;group by&lt;/STRONG&gt;&lt;/FONT&gt; id_b &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;having&lt;/STRONG&gt;&lt;/FONT&gt; 1=1)&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;EM&gt;I'm aware that the above example queries are fake/not terribly useful. They're just meant to demonstrate that the SQL syntax is valid.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idea:&lt;/P&gt;&lt;P&gt;As far as I can tell, the docs don't mention that the above syntax is valid in FGDB views and subquery expressions. Could the docs be improved?&lt;/P&gt;&lt;P&gt;I'm aware of the SQL syntax mentioned in this page:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-file-gdb/sql-reporting-and-anlysis-file-geodatabases.htm" target="_self"&gt;SQL for reporting and analysis on file geodatabases&lt;/A&gt;. But if I understand correctly, the syntax on that page pertains specifically to the .NET API/ArcObjects, not SQL syntax for FGDB views or expressions.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 20:28:48 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-12-21T20:28:48Z</dc:date>
    <item>
      <title>Clarify the docs: Advanced SQL syntax is supported in FGDB views and expression subqueries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/clarify-the-docs-advanced-sql-syntax-is-supported/idi-p/1243075</link>
      <description>&lt;P&gt;It looks like we can use advanced SQL syntax such as GROUP BY and HAVING in FGDB views and FGDB expression subqueries.&lt;/P&gt;&lt;P&gt;For example, I can create a FGDB &lt;STRONG&gt;view&lt;/STRONG&gt;&amp;nbsp;like this:&lt;/P&gt;&lt;PRE&gt;select
    text_a
from
    table_a
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;group by&lt;/STRONG&gt;&lt;/FONT&gt;
    text_a&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;having&lt;/STRONG&gt;&lt;/FONT&gt; &lt;BR /&gt;    1=1&lt;BR /&gt;&lt;FONT color="#999999"&gt;--I can use &lt;/FONT&gt;&lt;FONT color="#999999"&gt;JOIN&amp;nbsp;in&amp;nbsp;FGDB&amp;nbsp;views too.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And I can create an FGDB &lt;STRONG&gt;SQL expression subquery&lt;/STRONG&gt; like this:&lt;/P&gt;&lt;PRE&gt;id_a in (select id_b from table_b &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;group by&lt;/STRONG&gt;&lt;/FONT&gt; id_b &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;having&lt;/STRONG&gt;&lt;/FONT&gt; 1=1)&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;EM&gt;I'm aware that the above example queries are fake/not terribly useful. They're just meant to demonstrate that the SQL syntax is valid.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idea:&lt;/P&gt;&lt;P&gt;As far as I can tell, the docs don't mention that the above syntax is valid in FGDB views and subquery expressions. Could the docs be improved?&lt;/P&gt;&lt;P&gt;I'm aware of the SQL syntax mentioned in this page:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-file-gdb/sql-reporting-and-anlysis-file-geodatabases.htm" target="_self"&gt;SQL for reporting and analysis on file geodatabases&lt;/A&gt;. But if I understand correctly, the syntax on that page pertains specifically to the .NET API/ArcObjects, not SQL syntax for FGDB views or expressions.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 20:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/clarify-the-docs-advanced-sql-syntax-is-supported/idi-p/1243075</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-12-21T20:28:48Z</dc:date>
    </item>
  </channel>
</rss>

