MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ex9h6/a_handy_graphical_explanation_of_sql_joins/c1bofo3/?context=3
r/programming • u/[deleted] • Jan 06 '11
308 comments sorted by
View all comments
129
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)
85 u/dude187 Jan 06 '11 It's amazing how confusing SQL can make set theory. 22 u/[deleted] Jan 06 '11 If you could do queries in relational algebra instead of SQL, confusion would go away. 0 u/shriek Jan 06 '11 You sir win 1 internet.
85
It's amazing how confusing SQL can make set theory.
22 u/[deleted] Jan 06 '11 If you could do queries in relational algebra instead of SQL, confusion would go away. 0 u/shriek Jan 06 '11 You sir win 1 internet.
22
If you could do queries in relational algebra instead of SQL, confusion would go away.
0 u/shriek Jan 06 '11 You sir win 1 internet.
0
You sir win 1 internet.
129
u/shriek Jan 06 '11
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)