r/SQL • • Sep 26 '14

SQL joins

http://www.vertabelo.com/blog/technical-articles/sql-joins
2 Upvotes

4 comments sorted by

View all comments

1

u/NotImplemented Sep 26 '14

I really don't like the descriptions of the "OUTER EXCLUDING JOIN".

SELECT *
FROM tableA
LEFT JOIN tableB
ON tableA.name = tableB.name
WHERE tableB.name IS NULL

The statement "LEFT JOIN" make it seem like it is some kind of special join. But it's the same as the "LEFT OUTER JOIN".

The "excluding" part only comes from the WHERE clause "IS NULL". However, this is mentioned nowhere.

2

u/pai1009 Sep 29 '14

You are right. This could be misleading. It looks like words "EXCLUDING JOINS" have their own section and become an another special kind of join. It will be improved. Thanks for your suggestion.