Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Outer Joins are less common than Inner Joins, but still highly useful.
Three Types of Outer Joins:
Left
Right
Full
In this video, we introduced three types of Outer Joins, but only showed examples of the Left Outer Join. This is because a few database engines, like SQLite, only support the Left Outer Join. Most other database systems support all three types.
Right Outer Joins are essentially the same thing as Left Outer Joins, but just specified in the opposite direction.
Full Outer Joins are functionally different in that you are guaranteed to get all rows from both tables. Full Outer Joins arenβt used as much in application or report coding as Inner and Left/Right Outer Joins, but can come in very handy when doing things like comparing data between two tables that are structurally similar.
Resources:
W3Schools: Left Joins
W3Schools: Right Joins
W3Schools: Full Joins
Wikipedia: Outer Joins
Cheat Sheet
See all of the SQL used in Querying Relational Databases in the Querying Relational Databases Cheat Sheet.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up