When sorting a field in the attribute table, it would be helpful if we could specify how nulls are handled (NULLS FIRST vs. NULLS LAST).
For example (Oracle), I want to sort a date field descending so that the latest dates are at the top. But when I do that, 1) nulls are at the top, then 2) the latest dates are shown next, then 3) the first dates.
That's a nuisance when dealing with large tables. I need to painstakingly scroll down through nulls to get to the first instance of a non-null date in the list. (In my case, I had to scroll through 10,000 nulls...and then look for where the nulls stop and the dates start)
Sorting in ascending order doesn't help either.
It would be better if I could specify that I want the nulls to be last in the list, even though I'm sorting descending.
Maybe something like this:
Would something like that be possible?
Related: Allow using the ORDER BY clause in definition queries (SQL)
Sure! Here's the documentation for it: ArcGIS Pro: Set the active definition query
Here's the project in question. As you can see I have multiple '<attribute>IS NULL' queries defined. I can toggle them on and off fairly easily from Layer Properties.
This is a great feature in Pro for often-used views on a layer, noting you can only have one active at one time, so it's not quite a radio-button toggle panel. Previously you would need to have multiple layers with different definition (restriction) queries defined.
It would still be useful to leave nulls in and have nulls first or last as you can accidentally leave a restriction query on and them come back months later to wonder where the data went. 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.