find any rows where multiple id
s exist:
select
*
from
my_table
where
id in (
select
id
from
my_table
group by id
having count(*) > 1
)
find any rows where multiple id
s exist:
select
*
from
my_table
where
id in (
select
id
from
my_table
group by id
having count(*) > 1
)