SLOs
Joining Tables
Week 05: April 13β17ΒΆ
At the end of this week, you should be able to:
Explain conceptually how a
JOINcombines rows from multiple tables.Write an
INNER JOINto retrieve only rows with matching values in both tables.Write a
LEFT OUTER JOINto include all rows from the left table, withNULLfor unmatched rows on the right.Write a
RIGHT OUTER JOINand explain its symmetry withLEFT OUTER JOIN.Write a
FULL OUTER JOINto include all rows from both tables regardless of matches.Write a
CROSS JOINand explain when it is useful.Use table aliases to write cleaner and more readable multi-table queries.
Join more than two tables in a single query.
Write a self-join to compare rows within the same table.