select some_column, count(*)
from some_table
group by 1
having count(*) > 1;
På databaser som mysql kan du endda undlade at vælge count(*)
at forlade bare kolonneværdierne:
select some_column
from some_table
group by 1
having count(*) > 1;
select some_column, count(*)
from some_table
group by 1
having count(*) > 1;
På databaser som mysql kan du endda undlade at vælge count(*)
at forlade bare kolonneværdierne:
select some_column
from some_table
group by 1
having count(*) > 1;