people has home_id not location_id

master
Matt Huntington 7 years ago
parent 26d22eef3b
commit 87974f26ff

@ -7,5 +7,5 @@ SELECT
name, name,
age age
FROM locations FROM locations
LEFT JOIN people ON locations.id = people.location_id LEFT JOIN people ON locations.id = people.home_id
ORDER BY locations.id ORDER BY locations.id

Loading…
Cancel
Save