Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 31st, 2013  |  syntax: MySQL  |  size: 0.17 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. select u.name, u.status from
  2. (select h.name, h.status from have h union all select a.name, a.status from addon a) u
  3. group by u.name,u.status having COUNT(*) < 2