Guest User

Untitled

a guest
Oct 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. select
  2. u.uid, u.fname, u.lname, u.defaultpic, u.default_location
  3. from friends as f1
  4. inner join friends as f2 on f2.fromid = f1.uid AND f1.fromid = f2.uid
  5. inner join profiles as u on f2.fromid = u.uid
  6. where
  7. WHERE f1.uid != 10 and f2.uid != 10
  8.  
  9. GROUP BY u.uid
Add Comment
Please, Sign In to add comment