Practice Left Join (or Left Outer Join) (5.5.2) - Structured Query Language (SQL) - Part 2
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

LEFT JOIN (or LEFT OUTER JOIN)

Practice - LEFT JOIN (or LEFT OUTER JOIN)

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What is the primary purpose of a LEFT JOIN?

💡 Hint: Think about what happens to unmatched rows.

Question 2 Easy

In a LEFT JOIN, what is shown when there is no match on the right side?

💡 Hint: Consider the case when one table has extra data.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does a LEFT JOIN do?

Returns only matched rows from both tables.
Returns all rows from the left table with matched rows from the right table.
Returns only rows from the right table.

💡 Hint: Think about what happens when some records in the left table don't find a match.

Question 2

True or False: LEFT JOIN will display NULL values for unmatched records from the left table.

True
False

💡 Hint: Consider which direction the data is retained.

Get performance evaluation

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create an SQL query that showcases all employees and their respective departments, ensuring that any employees without departments still appear in the results.

💡 Hint: Remember to join on Employee Department IDs.

Challenge 2 Hard

Given a Products table and a Suppliers table, write a LEFT JOIN query that displays all products, showing supplier names where available.

💡 Hint: Ensure you're joining on the IDs that link products with their suppliers.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.