Professional Documents
Culture Documents
Database Systems
By
S. Sabraz Nawaz
Senior Lecturer in MIT
FMC, SEUSL
Joins
• You have focused primarily on retrieving data from a single
table so far. In practice, it is highly unlikely that your queries will
reference just one table—most of the time; you will be
required to return data from multiple tables.
• To do this, you use the JOIN operator. In this chapter, we will
focus on the three most commonly used:
o INNER
o LEFT OUTER
o RIGHT OUTER
• The shaded section of figure depicts the rows that will be returned from a
query that would join the Sales and Product tables.
Notes
The INNER keyword is optional and is seldom used.