Skip to content

Instantly share code, notes, and snippets.

@ThePromenader
Created May 13, 2021 12:01
mysql join query
SELECT
p.name,
h.number,
h.streetname
FROM
people p
LEFT JOIN houses h
ON p.lives_in_house_id = h.id
WHERE h.number = '1' AND
h.streename = 'Elm Street';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment