Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by sgarland

5 months ago

    SELECT
      cs.*,
      s.*
    FROM crime_scene cs
    FULL JOIN
      suspects s ON cs.id = s.id;

This maintains zero relationship between the tables, of course, but it shows you both. You could also specify individual columns.

0 comments

sgarland

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities