Instruction
Good! Let's summarize what we have learned:
- You can join multiple tables with the
JOIN … ONconstruction. After theJOINkeyword you need to specify the table you want to join. After theONkeyword you need to specify the condition upon which you want to join the tables. The complete name ofJOINisINNER JOIN. LEFT JOINis another commonly used type ofJOIN. It is used when we want to return ALL rows from the LEFT table, even if there are no matching rows from the right table.- There is also the
RIGHT JOIN, which is the symmetric opposite ofLEFT JOIN. - A
FULL JOINis a union ofLEFT JOINandRIGHT JOIN; it shows matching rows from both tables AND the rows that do not match from each table. - A
CROSS JOINproduces all possible combinations of rows from the first table joined with rows from the second table.
Exercise
Click the button to continue.



