Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. (SELECT user1 AS user FROM friendships WHERE user2 = 'johnsmith')
  2. UNION ALL
  3. (SELECT user2 AS user FROM friendships WHERE user1 = 'johnsmith')
  4. UNION ALL
  5. (SELECT user1 AS user FROM friendships WHERE user2 = 'johndoe')
  6. UNION ALL
  7. (SELECT user2 AS user FROM friendships WHERE user1 = 'johndoe')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement