Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. SELECT COUNT(*)
  2. FROM surveys
  3. JOIN properties ON surveys.property_id = properties.id
  4. JOIN owners_properties ON properties.id = owners_properties.property_id
  5. WHERE owners_properties.property_id > 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement