Guest User

Untitled

a guest
Oct 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. select *
  2. from table
  3. where foreign_id in
  4. (select foreign_id
  5. from table
  6. group by foreign_id
  7. having count(*)>1)
Add Comment
Please, Sign In to add comment