Show all rows that have certain columns duplicated
You’ve found your duplicated records but you’re interested in getting all the information attached to them. You need to join your duplicates to your main table to get that information. select * from my_table a join ( select firstname, lastname from my_table group by firstname, lastname having count(*) > 1 ) b on a.firstname = … Read more