OUTER JOINs Versus INNER JOINs
Just as the non-equi-join balances the equi-join, an OUTER JOIN complements the INNER JOIN. An INNER JOIN is when the rows of the tables are combined with each other, producing a number of new rows equal to the product of the number of rows in each table. Also, the INNER JOIN uses these rows to determine the result of the WHERE clause. An OUTER JOIN groups the two tables in a slightly different way. An OUTER JOIN displays all rows of data from one table even though matching data might not reside in the joined table. For example, you might want to generate a list of all products and their prices, although some products might have no orders. Using the PARTS and ORDERS tables from the previous examples, perform the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access