SQL JOIN Quiz

SQL JOIN Quiz

University

24 Qs

quiz-placeholder

Similar activities

MATH & SCIENCE REVIEW

MATH & SCIENCE REVIEW

KG - University

20 Qs

Mastering SQL Concepts

Mastering SQL Concepts

University

20 Qs

DBMS-UNIT-2: SQL

DBMS-UNIT-2: SQL

University

21 Qs

Database Management System Quiz

Database Management System Quiz

University

20 Qs

Excel

Excel

12th Grade - University

25 Qs

AlterU - Mysql

AlterU - Mysql

1st Grade - Professional Development

20 Qs

Set 1 Quiz

Set 1 Quiz

University

20 Qs

Inner Ear

Inner Ear

University

25 Qs

SQL JOIN Quiz

SQL JOIN Quiz

Assessment

Quiz

Other

University

Easy

Created by

Lythia Amoakon

Used 1+ times

FREE Resource

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.

Only matching rows
Rows from the left table with NULLs
Only rows with NULL values
An error

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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.

INNER JOIN
FULL OUTER JOIN
RIGHT JOIN
CROSS JOIN

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?