I am trying to use select by attribute for the table in ArcGIS, which is similar to the following picture (lets say):
I want to select those entries for each A and B, which have maximum count.
I used
SELECT *
FROM table
WHERE
count=
(
SELECT DISTINCT MAX(count)
FROM table
)
This can give result for the maximum count of the whole table. What should be the modification or addition in the above query so that it will select the maximum count for A and B as well?
No comments:
Post a Comment