select some_column, count(*)
from some_table
group by 1
having count(*) > 1;
Op databases zoals mysql kunt u zelfs weglaten om count(*)
te selecteren om gewoon te verlaten de kolomwaarden:
select some_column
from some_table
group by 1
having count(*) > 1;