SQL JOIN Quiz

SQL JOIN Quiz

University

24 Qs

quiz-placeholder

Similar activities

BTS

BTS

2nd Grade - Professional Development

23 Qs

Residential Status

Residential Status

University

20 Qs

GEN ANA 1 LAB ACTIVITY 2024

GEN ANA 1 LAB ACTIVITY 2024

University - Professional Development

20 Qs

Partnership Operation

Partnership Operation

University

20 Qs

LONG EXAM

LONG EXAM

University

20 Qs

AnaPhy Topic 1

AnaPhy Topic 1

University

20 Qs

KUIS 1 Metode  Numerik

KUIS 1 Metode Numerik

University - Professional Development

19 Qs

Group B Back and Spine Quiz

Group B Back and Spine Quiz

University

20 Qs

SQL JOIN Quiz

SQL JOIN Quiz

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Lythia Amoakon

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?