I have the following table:
uid | key | email
-----------------
1 | 1 | [email protected]
2 | 2 | [email protected]
3 | 3 | [email protected]
4 | 4 | [email protected]
5 | 4 | [email protected]
6 | 4 | [email protected]
7 | 6 | [email protected]
8 | 7 | [email protected]
I'd like to grab all of the rows with distinct key but repeating email values
the result should look like:
uid | key | email
-----------------
1 | 1 | [email protected]
2 | 2 | [email protected]
3 | 3 | [email protected]