select some_column, count(*)
from some_table
group by 1
having count(*) > 1;
On databases like mysql, you may even omit selecting count(*)
to leave just the column values:
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;
On databases like mysql, you may even omit selecting count(*)
to leave just the column values:
select some_column
from some_table
group by 1
having count(*) > 1;