Test your understanding with targeted questions related to the topic.
Question 1
Easy
What does an INNER JOIN do?
π‘ Hint: Think about how it filters records.
Question 2
Easy
Explain what a LEFT JOIN does.
π‘ Hint: Remember, unmatched records from the right will show NULLs.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What type of join returns records with matching values in both tables?
π‘ Hint: Focus on matching values.
Question 2
True or False: A LEFT JOIN will always return rows even if there are no matches in the right table.
π‘ Hint: Consider what happens to unmatched records.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Given two tables: 'students' (id, name) and 'enrollments' (student_id, course_id), write a query using LEFT JOIN to select all students and their enrolled courses. Include students not enrolled in any course.
π‘ Hint: Remember to include all students, regardless of their enrollment status.
Question 2
Using RIGHT JOIN, write a query to find all courses and the students enrolled in them, including courses with no students enrolled.
π‘ Hint: Focus on ensuring all courses are listed.
Challenge and get performance evaluation