Skip to content

Instantly share code, notes, and snippets.

@julie-mills
Created December 21, 2023 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julie-mills/d1498c11defbe22c3f63f785d07f8256 to your computer and use it in GitHub Desktop.
Save julie-mills/d1498c11defbe22c3f63f785d07f8256 to your computer and use it in GitHub Desktop.
SELECT p.title, p.content, c.text
FROM posts p
JOIN comments c ON p.post_id = c.post_id
WHERE p.post_id = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment