How can I count unrepeatable combinations of values ββin MySQL?
I have a table with some stale data that I suspect might get a little messy. This is a many-to-many join table.
LIST_MEMBERSHIPS
----------------
list_id
address_id
I would like to run a query that will count the occurrences of each pair list_id
- address_id
and show the number of matches for each of the highest and lowest number of occurrences.
I know what it was supposed to include COUNT()
and GROUP BY
, right?
0
a source to share