Advertisement
nicnic

find duplicates in a table

Sep 30th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.16 KB | None | 0 0
  1. SELECT firstname, lastname, list.address FROM list
  2. INNER JOIN (SELECT address FROM list
  3. GROUP BY address HAVING count(id) > 1) dup ON list.address = dup.address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement