code sql
SELECT DISTINCT column1, column2, ...
FROM table_name;
requête DISTINCTE
SELECT DISTINCT Column_name FROM table_name;
sélectionnez distinct
SELECT DISTINCT ma_colonne
FROM nom_du_tableau
sql server sélectionne les lignes par colonne distincte
SELECT a.*
FROM emails a
INNER JOIN
(SELECT email,
MIN(id) as id
FROM emails
GROUP BY email
) AS b
ON a.email = b.email
AND a.id = b.id;