The INNER JOIN keyword selects all rows from both tables as long as there is a match between the columns in both tables.
Early on in this course, we investigated what it meant to have a normalized database and its associated tables. Although
normalization is not an SQL statement, it is something that you use when you query a table with SQL. You need to understand the mechanics as they relate to how to use the information in the table and how to build your SQL statements.
Joins, specifically the INNER and OUTER join approaches are much the same thing.
An INNER join is the most common type of join. It simply returns the rows that match the WHERE clause, and entries that do not have matches will not be included in the results. An OUTER join will show you all of the rows from one or both of the tables, regardless of whether those rows match rows in the other table.
In the next lesson, we will look at three types of OUTER joins
- RIGHT, and
- FULL joins.