News

In a three-way join, the sql-expression consists of two conditions: one relates the first table to the second table and the other relates the second table to the third table.
Read this SQL tutorial to learn when to use SELECT, JOIN, subselects and UNION to access multiple tables with a single statement.
A join combines two or more tables side by side. If you do not specify how to join the tables, you get a Cartesian product. This means that SQL combines each row from the first table with every row ...
In this SQL Server tip, Arthur Fuller explains the effects of NULLs, and the different results obtained by inner and outer JOINs.
I'm having a brain fart here... I have a feeling that I should be able to write a single query to handle this, but I just can't think of how... Basically, I have two tables: "distributors" and ...