While doing some of my homework I found a question where they ask me to list all possible join types in PostreSQL. My answer would be:
- INNER JOIN
- LEFT OUTER JOIN
- RIGHT OUTER JOIN
- FULL OUTER JOIN
- CROSS JOIN
with all its NATURAL equivalences (NATURAL INNER JOIN, NATURAL LEFT OUTER JOIN, ...).
However, the professor told us that there exists one more JOIN type that it is difficult to find. In my 2 years of working with SQL I have never seen any other JOIN types than these.
Do you know any other JOIN type? Could you please help me?
Thank you very much.
JOIN
keyword. – Gordon LinoffUNION JOIN
was part of the SQL Standard until 2003. Afaik PostgreSQL never implemented it, though. – The ImpalerLATERAL JOIN
s? See 7.2.1.5 Lateral Subqueries – The Impaler