You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
206 B

SELECT
locations.id AS location_id,
street,
city,
state,
people.id AS person_id,
name,
age
FROM locations
LEFT JOIN people ON locations.id = people.home_id
ORDER BY locations.id