laptop and a wrench

Bug

The SQL function GROUP BY used in subqueries is returning wrong values in the file geodatabase.

ArcGIS Pro
Bug ID Number BUG-000158653
SubmittedMay 30, 2023
Last ModifiedJuly 4, 2025
Applies toArcGIS Pro
Version found3.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusKnown Limit

Additional Information

Support for SUB SELECT in the file geodatabase is very limited. Feel free to enter an enhancement request, and we will consider adding GROUP BY support in a SUB SELECT in a future release.

Workaround

Use the DISTINCT function instead of GROUP BY: Field in 1 (Select Distinct Field1 from table where Field2< 2).

Distinct.jpg

Steps to Reproduce

Bug ID: BUG-000158653

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options