Select to view content in your preferred language

Use Select by Attributes to select greatest n records (FGDB)

783
4
01-17-2024 04:42 AM
Status: Open
Labels (1)
Bud
by
Esteemed Contributor

ArcGIS Pro 3.2.1; file geodatabase


As far as I know, there isn’t a way to use Select By Attributes to select the top n records of a FGDB FC, such as select the 4 cities with the largest POPULATION (no ties).

See: 

 

4 Comments
Bud
by

I suppose this idea might be a duplicate of my other idea: SQL LIMIT clause in FGDB SQL

And this idea is related too: ROW_NUMBER function in FGDB SQL

In those ideas, I wanted to make it clear that I want those specific functions/clauses in FGDB SQL. They would help with the current idea above, as well as many other use cases.

JamalNUMAN

Yes, we need it

Clip_687.jpg

Bud
by

To me, it's not really acceptable that Esri's main/proprietary datatype doesn't support this (without creating a copy of the data). It's a basic GIS task: select the 4 biggest cities.