Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT COUNT(*)
- FROM surveys
- JOIN properties ON surveys.property_id = properties.id
- JOIN owners_properties ON properties.id = owners_properties.property_id
- WHERE owners_properties.property_id > 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement