I am looking for a way to run a simple SELECT
statment. I have a table which has two columns: id
and email
.
I want to run a SELECT
statment that won't return duplicate values. For example, take the following data:
1 [email protected]
2 [email protected]
3 [email protected]
4 [email protected]
I want it to return only the following:
1 [email protected]
2 [email protected]
...and skip the duplicate values.
SELECT MIN(id), email FROM some_table GROUP BY email
SELECT DISTINCT email FROM table
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With