select some_column, count(*)
from some_table
group by 1
having count(*) > 1;
W bazach danych takich jak mysql możesz nawet pominąć wybór count(*)
wyjść tylko wartości kolumn:
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;
W bazach danych takich jak mysql możesz nawet pominąć wybór count(*)
wyjść tylko wartości kolumn:
select some_column
from some_table
group by 1
having count(*) > 1;