
SQL JOIN Quiz
Authored by Lythia Amoakon
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of a JOIN in SQL?
To delete rows from multiple tables
To combine rows from two or more tables based on a related column
To add new columns to a table
To update data in a single table
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following types of JOIN returns only matching rows from both tables?
INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL OUTER JOIN
3.
DRAG AND DROP QUESTION
1 min • 1 pt
A LEFT JOIN will return rows from the left table with (a) for non-matching rows in the right table.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
SELECT e.Name, d.DepartmentName
FROM Employees e
LEFT JOIN Departments d
ON e.DepartmentID = d.DepartmentID;
What is the result of the query?
Alice - HR; Bob - NULL; Charlie - IT
Alice - HR; Charlie - IT
NULL - NULL
Alice - HR; Bob - IT; Charlie - IT
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which JOIN should you use to include unmatched rows from both tables?
INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL OUTER JOIN
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of using an INNER JOIN with no matching records between tables?
NULL rows
No rows returned
All rows from both tables
Rows from the left table only
7.
DRAG AND DROP QUESTION
1 min • 1 pt
(a) will produce the same result as reversing the roles of the two tables in a LEFT JOIN.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?