Guest User

Untitled

a guest
Jun 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. SELECT organizations.name FROM "organizations"
  2. INNER JOIN "domain_memberships" ON "domain_memberships".domain_member_id = "organizations".id AND "domain_memberships".domain_member_type = E'Organization'
  3. WHERE (domain_memberships.domain_id in (1,2,3);
  4.  
  5. ## result
  6.  
  7. name
  8. -------------
  9. Foo Company
  10. Foo Company
  11. IBM
  12. IBM
  13. IBM
Add Comment
Please, Sign In to add comment