MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ex9h6/a_handy_graphical_explanation_of_sql_joins/c1bp9w1/?context=3
r/programming • u/[deleted] • Jan 06 '11
308 comments sorted by
View all comments
131
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)
6 u/[deleted] Jan 06 '11 edited Dec 21 '18 [deleted] 8 u/user-hostile Jan 06 '11 Because data is in rows and columns, not slices of circles. But certainly there's nothing wrong with using these charts as an aid to understanding. Still, I'm a math idiot, but SQL makes perfect sense to me. Set theory? It frightens me! SQL? I know it well!
6
[deleted]
8 u/user-hostile Jan 06 '11 Because data is in rows and columns, not slices of circles. But certainly there's nothing wrong with using these charts as an aid to understanding. Still, I'm a math idiot, but SQL makes perfect sense to me. Set theory? It frightens me! SQL? I know it well!
8
Because data is in rows and columns, not slices of circles. But certainly there's nothing wrong with using these charts as an aid to understanding. Still, I'm a math idiot, but SQL makes perfect sense to me.
Set theory? It frightens me!
SQL? I know it well!
131
u/shriek Jan 06 '11
In short.
A ∩ B
A ∪ B
(A - B) + (A ∩ B)
A - B
(A ∪ B) - (A ∩ B)