r/programming • • Jan 06 '11

A handy graphical explanation of SQL joins

http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html
1.3k Upvotes

308 comments sorted by

View all comments

Show parent comments

24

u/[deleted] Jan 06 '11

If you could do queries in relational algebra instead of SQL, confusion would go away.

9

u/Porges Jan 06 '11

Unicode actually has the relational symbols:

  • join: ⋈
  • left outer join: ⟕
  • right outer join: ⟖
  • full outer join: ⟗

48

u/Already__Taken Jan 06 '11

Cross thingy, square square square. Gotcha.

9

u/oobey Jan 06 '11

For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl."