martes, 21 de abril de 2015

Tutorial Left Excluding Join

This query will return all of the records in the left table (table A) that do not match any records in the right table (table B). This Join is written as follows:


SELECT <select_list> 
FROM Table_A A
LEFT JOIN Table_B B
ON A.Key = B.Key
WHERE B.Key IS NULL

SQL dibujos y relaciones