SQL to find duplicate records

select * from people
where peopleId in (select   peopleId  from   people  group  by   peopleId  having  count(peopleId) > 1)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325513595&siteId=291194637