A homework question asked me to list all possible join types in PostreSQL.
My answer:
- INNER JOIN
- LEFT OUTER JOIN
- RIGHT OUTER JOIN
- FULL OUTER JOIN
- CROSS JOIN
with all its NATURAL variants (NATURAL INNER JOIN, NATURAL LEFT OUTER JOIN, ...).
However, the professor told us that there exists one more JOIN type. In my 2 years of working with SQL I have never seen any other JOIN types than these.
What are other JOIN types?
JOINkeyword.UNION JOINwas part of the SQL Standard until 2003. Afaik PostgreSQL never implemented it, though.LATERAL JOINs? See 7.2.1.5 Lateral Subqueries