## Find ALL duplicate recods by value (without grouping them by value) ### to find the duplicate, # replace all instances of tableName with your table name# and all instances of duplicateField with the field name where you look for duplicatesSELECT t1.*FROM tableName AS t1
INNERJOIN(SELECT duplicateField
FROM tableName
GROUPBY duplicateField
HAVINGCOUNT(duplicateField)>1)tempON t1.duplicateField =temp.duplicateField
orderby duplicateField
SELECT firstname,
lastname,
list.address
FROM list
INNERJOIN(SELECT address
FROM list
GROUPBY address
HAVINGCOUNT(id)>1) dup
ON list.address = dup.address;
SELECT firstname,
lastname,
list.address
FROM list
INNERJOIN(SELECT address
FROM list
GROUPBY address
HAVINGCOUNT(id)>1) dup
ON list.address = dup.address;