Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 31st, 2013  |  syntax: MySQL  |  size: 0.17 KB  |  hits: 31  |  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