I would like to know if there is an opposite of \"select distinct\" in sql ,so that i can use to get values from a table of only which has repeated multiple times.
Thank
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:
count(*)
select some_column from some_table group by 1 having count(*) > 1;