M
Mycroft
I have multi-column data where I'd like to sort on the *number* of
unique elements in a given column, generally to list the most common
entries first.
My first columns look something like this:
smith ...
smith ...
olson ...
doe ...
doe ...
doe ...
I'd like the query to sort on the unique elements by most numerous
first such as:
doe ...
doe ...
doe ...
smith ...
smith ...
olson ...
There is of course a lot more data and it is absolutely huge. But it
is requested to be in this order - so I can tackle the largest number
of elements first.
I thought perhaps create a data column that has the total number:
smith ... 2
smith ... 2
olson ... 1
doe ... 3
doe ... 3
doe ... 3
Which would get the job done (via sort) but can't even get that
working. Plus its not very elegant.
Thanks.
unique elements in a given column, generally to list the most common
entries first.
My first columns look something like this:
smith ...
smith ...
olson ...
doe ...
doe ...
doe ...
I'd like the query to sort on the unique elements by most numerous
first such as:
doe ...
doe ...
doe ...
smith ...
smith ...
olson ...
There is of course a lot more data and it is absolutely huge. But it
is requested to be in this order - so I can tackle the largest number
of elements first.
I thought perhaps create a data column that has the total number:
smith ... 2
smith ... 2
olson ... 1
doe ... 3
doe ... 3
doe ... 3
Which would get the job done (via sort) but can't even get that
working. Plus its not very elegant.
Thanks.