Advertisement
rozman50

Untitled

Jul 6th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. SELECT
  2. adr.id, adr.name, adr.`number`, adr.city, adr.post, adr.postcode, adr.country_id,
  3. c.id, c.name, c.code
  4. FROM
  5. rentacar.addresses as adr
  6. left join
  7. personsaddresses on adr.id = personsaddresses.person_id
  8. left join
  9. countries as c on c.id = adr.country_id
  10. where
  11. personsaddresses.person_id = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement