Skip to content

Instantly share code, notes, and snippets.

@nalaekaw
Created September 17, 2022 07:20
Show Gist options
  • Save nalaekaw/f080f233bf43a0ff1705d32b9197304c to your computer and use it in GitHub Desktop.
Save nalaekaw/f080f233bf43a0ff1705d32b9197304c to your computer and use it in GitHub Desktop.
SELECT pp.*, p.name
FROM product_photo pp
left join product p
ON p.id = pp.product_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment