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