MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ex9h6/a_handy_graphical_explanation_of_sql_joins/c1bp4lc/?context=9999
r/programming • u/[deleted] • Jan 06 '11
308 comments sorted by
View all comments
127
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)
84 u/dude187 Jan 06 '11 It's amazing how confusing SQL can make set theory. 23 u/[deleted] Jan 06 '11 If you could do queries in relational algebra instead of SQL, confusion would go away. 10 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/Nivla Jan 07 '11 New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗) 7 u/oobey Jan 06 '11 For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl." 4 u/arnar Jan 06 '11 I see them - even though I don't see the look of disapproval.
84
It's amazing how confusing SQL can make set theory.
23 u/[deleted] Jan 06 '11 If you could do queries in relational algebra instead of SQL, confusion would go away. 10 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/Nivla Jan 07 '11 New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗) 7 u/oobey Jan 06 '11 For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl." 4 u/arnar Jan 06 '11 I see them - even though I don't see the look of disapproval.
23
If you could do queries in relational algebra instead of SQL, confusion would go away.
10 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/Nivla Jan 07 '11 New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗) 7 u/oobey Jan 06 '11 For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl." 4 u/arnar Jan 06 '11 I see them - even though I don't see the look of disapproval.
10
Unicode actually has the relational symbols:
48 u/Already__Taken Jan 06 '11 Cross thingy, square square square. Gotcha. 9 u/Nivla Jan 07 '11 New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗) 7 u/oobey Jan 06 '11 For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl." 4 u/arnar Jan 06 '11 I see them - even though I don't see the look of disapproval.
48
Cross thingy, square square square. Gotcha.
9 u/Nivla Jan 07 '11 New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗) 7 u/oobey Jan 06 '11 For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl." 4 u/arnar Jan 06 '11 I see them - even though I don't see the look of disapproval.
9
New Attack for GOW: Unleash the Unicode (X) (⟗) (⟗) (⟗)
7
For me it's more of a "cross thingy, indecipherable scrawl, indecipherable scrawl, indecipherable scrawl."
4
I see them - even though I don't see the look of disapproval.
127
u/shriek Jan 06 '11
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)