In general, a JOIN operationcombines two or more tables, generating one result set from the information stored in such tables. These tables should have similar columns, commonly foreign keys, which are the ones used in JOIN operations to link tables. Also, as you might have noticed in previous examples, the columns involved in a JOIN condition don't need to have the same name.

An INNER JOIN operation between two tables returns all common rows in these two tables. Specifically, INNER JOIN evaluates the JOIN condition for each row in both tables and if this condition is met, the row is included in the result set. For example, if you want to retrieve information about products and the name of the supplier of each product, the Products ...

Get Microsoft® SQL Server™ 2000 Programming by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.