Guest User

Untitled

a guest
May 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. SELECT DISTINCT o.orgId, o.name, o.phone_number, cv.catId
  2. FROM (organizations o JOIN category_values cv
  3. on cv.orgId = o.orgId) JOIN users_categories uc
  4. on uc.catId = cv.catId WHERE (uc.uid = '3' AND cv.catId='163')
  5. ORDER BY o.name ASC
Add Comment
Please, Sign In to add comment