Skip to content

Instantly share code, notes, and snippets.

@rpazyaquian
Created October 1, 2014 21:26
Show Gist options
  • Save rpazyaquian/87e2e5bf929c1e957032 to your computer and use it in GitHub Desktop.
Save rpazyaquian/87e2e5bf929c1e957032 to your computer and use it in GitHub Desktop.
-- The results of Joins are equivalent to everything that evaluates to true in these comparisons:
-- INNER JOIN:
-- "A && B" == "A and also B"
-- FULL JOIN:
-- "A || B" == "A or B or both"
-- LEFT JOIN:
-- "A || (A && B)" == "A with or without B"
-- LEFT OUTER JOIN:
-- "A && !(A && B)" == "A but not B or both"
-- RIGHT JOIN:
-- "B || (A && B)" == "B with or without B"
-- RIGHT OUTER JOIN:
-- "B && !(A && B)" == "B but not A or both"
-- FULL OUTER JOIN:
-- "A ^ B" == "A or B but not both"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment