<?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 SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idi-p/1243088</link>
    <description>&lt;P&gt;If I understand correctly, the SQL syntax in the FGDB API (see: &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;) is only partially supported in FGDB views and expressions.&lt;/P&gt;&lt;P&gt;It seems weird to me that there would be SQL syntax that is available to the FGDB API, but not available to SQL queries in ArcGIS Pro (FGDB views and SQL expressions).&lt;/P&gt;&lt;P&gt;Could SQL queries in Pro be enhanced so that they fully support the more advanced SQL syntax in the FGDB API?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 16:22:43 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-12-23T16:22:43Z</dc:date>
    <item>
      <title>SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idi-p/1243088</link>
      <description>&lt;P&gt;If I understand correctly, the SQL syntax in the FGDB API (see: &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;) is only partially supported in FGDB views and expressions.&lt;/P&gt;&lt;P&gt;It seems weird to me that there would be SQL syntax that is available to the FGDB API, but not available to SQL queries in ArcGIS Pro (FGDB views and SQL expressions).&lt;/P&gt;&lt;P&gt;Could SQL queries in Pro be enhanced so that they fully support the more advanced SQL syntax in the FGDB API?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 16:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idi-p/1243088</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-12-23T16:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1243585#M22613</link>
      <description>&lt;P&gt;Esri has a bigger problem with that documentation you reference because ArcObjects has nothing to do with ArcGIS Pro.&amp;nbsp; According to&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#welcome.htm" target="_self"&gt;ArcObjects Help for .NET developers (ArcObjects .NET 10.8 SDK)&lt;/A&gt;, "ArcObjects is a library of Component Object Model (COM) components that make up the foundation of ArcGIS [Desktop/ArcMap]."&amp;nbsp; The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/" target="_self"&gt;ArcGIS Pro SDK for .NET&lt;/A&gt; is a completely different SDK than ArcObjects SDK, and there is a chance the code examples don't even transfer over.&amp;nbsp; It looks like Esri got sloppy and just fork-lifted the Desktop document over as Pro documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 15:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1243585#M22613</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2022-12-23T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1247084#M22773</link>
      <description>&lt;P&gt;Thanks for the Idea,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;It's my understanding that all of the SQL currently supported in the FGDB API is also supported in Pro. To help us better understand the limitations you are running up against, would you be able to share some SQL statements used in your workflows that are not supported in ArcGIS Pro?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 23:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1247084#M22773</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2023-01-10T23:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1247926#M22831</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding,&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" rel="nofollow noopener noreferrer"&gt;SQL for reporting and analysis on file geodatabases&lt;/A&gt;&lt;SPAN&gt;, I don’t think these SQL keywords work in FGDB definition queries/subqueries:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;CASE&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;JOIN&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;NULLIF&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;ORDER BY&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here’s an example of something I want to do in a FGDB definition query, but can’t, due to FGDB SQL limitations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-joins-control-what-related-record-is/idc-p/1239993/highlight/true#M22488" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-joins-control-what-related-record-is/idc-p/1239993/highlight/true#M22488&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Works for SQLite/mobile geodatabases, but not file geodatabases:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#000000"&gt;roadinsptable.o&lt;/FONT&gt;bjectid IN (
     SELECT objectid
       FROM roadinsptable r2
      WHERE r2.asset_id = roadinsptable.asset_id
&lt;FONT color="#000000"&gt;   ORDER BY date_ DESC, condition DESC
      LIMIT 1&lt;/FONT&gt;
            )&lt;/PRE&gt;&lt;P&gt;I’m aware that FGDB SQL doesn’t have LIMIT, not even in the FGDB API. There are likely other ways to accomplish it using SQL, without LIMIT, in databases that have full SQL support. But those alternatives wouldn’t be possible in FGDB definition queries due to the limited FGDB SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of the problem is that I’m not actually sure if&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&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" rel="nofollow noopener noreferrer"&gt;SQL for reporting and analysis on file geodatabases&lt;/A&gt;&amp;nbsp;actually pertains to the FGDB API. It’s a confusing page in a confusing place with no context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here's another example of the useful stuff we can do in geodatabases like enterprise and mobile, but not in file geodatabases: &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/force-bar-chart-to-show-missing-years-within-10/m-p/1250751" target="_self"&gt;Force bar chart to show missing years within 10-year range (system year + 9)&lt;/A&gt;. The queries generate filler rows so that there are rows/bars for each year in the 10-year range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 02:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1247926#M22831</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-02-08T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248517#M22859</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;, regarding your specific query (excluding the LIMIT aspect of it), the query doesn't work because of limitations with SQL joins with file geodatabases.&amp;nbsp; At least for the File Geodatabase API, Esri has always listed 2 known issues:&amp;nbsp;&lt;A href="https://github.com/Esri/file-geodatabase-api" target="_self"&gt;&lt;SPAN&gt;GitHub - Esri/file-geodatabase-api: ... The File Geodatabase C++ API for Windows, MacOS and Linux&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H2&gt;Known Issues&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Concurrent access from Windows and Linux clients to the same File GeoDatabase can corrupt data. This combination should be avoided.&lt;/LI&gt;&lt;LI&gt;SQL joins are not supported.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is likely that limitation in the FGDB API isn't just an FGDB API limitation, i.e., file geodatabases overall do not support SQL joins.&amp;nbsp; Is a bullet point on a GitHub page sufficient documentation?&amp;nbsp; I don't think so, I am guessing you don't think so, but it seems Esri does think so since they haven't materially improved their FGDB SQL documentation for many years.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 18:20:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248517#M22859</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-01-16T18:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248533#M22861</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile, SQL joins appear to be supported in FGDB views:&lt;/P&gt;&lt;PRE&gt;select &lt;BR /&gt;    *&lt;BR /&gt;from&lt;BR /&gt;    table_a a&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;inner join&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;    table_b b&lt;BR /&gt;    on a.id_a = b.id_b&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1673896763393.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60510i58B2D2C716FCFC4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1673896763393.png" alt="Bud_0-1673896763393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.0.3&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248533#M22861</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-16T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248551#M22862</link>
      <description>&lt;P&gt;I just tried your example on Pro 3.0.3, and I get "An invalid SQL statement was used" error.&amp;nbsp; I am able to create the tables and create the view, but I can't add it to a map.&amp;nbsp; Are you able to script out your steps so I can try running the code exactly the same way because something in our workflows is obviously different if it works for you but I get an error.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 21:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248551#M22862</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2023-01-16T21:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248715#M22866</link>
      <description>&lt;P&gt;&lt;EM&gt;Edited.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems there is a bug in ArcGIS Pro 3.0.3.&lt;/P&gt;&lt;P&gt;I tried to repeat my steps, but I got the same error you did when adding the view to the map:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Failed to add data, unsupported data type.&lt;/P&gt;&lt;P&gt;An invalid SQL statement was used.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1674010352809.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60610i3F37BEF820BBC37B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1674010352809.png" alt="Bud_0-1674010352809.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workaround:&lt;/P&gt;&lt;P&gt;Create the tables in a FGDB, but then copy the tables to a new FGDB (using right-click copy/paste in Catalog). In the new FGDB, I'm able to create the view, add the view to the map, and open the attribute table&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does that workaround work for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: The bug doesn't appear to be specific to the INNER JOIN view we're testing. I got the same error when creating a simpler view:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;select &lt;BR /&gt;&amp;nbsp; &amp;nbsp; *&lt;BR /&gt;from&lt;BR /&gt;&amp;nbsp; &amp;nbsp; table_a&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/bug-view-on-fgdb-standalone-table-can-t-add-view/td-p/1249111" target="_self"&gt;Bug: View on FGDB standalone table — can't add view to map&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 16:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1248715#M22866</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-01-18T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1373420#M28142</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This idea is out of date and can be closed. I think most of the issues that were brought up in this post are covered in other, more specific ideas, ENHs, and bug reports.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:10:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1373420#M28142</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-24T16:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL syntax in FGDB API should be supported in ArcGIS Pro FGDB queries - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1406000#M29238</link>
      <description />
      <pubDate>Thu, 04 Apr 2024 19:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-syntax-in-fgdb-api-should-be-supported-in/idc-p/1406000#M29238</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2024-04-04T19:57:07Z</dc:date>
    </item>
  </channel>
</rss>

