PL: Q2-Lesson5 IT2101

PL: Q2-Lesson5 IT2101

University

10 Qs

Similar activities

Database Concepts Quiz

Database Concepts Quiz

University

15 Qs

Exception handling -oracle plsql

Exception handling -oracle plsql

University

15 Qs

S4 DDD

S4 DDD

10th Grade - University

14 Qs

QUIZ ON SQL

QUIZ ON SQL

University

10 Qs

CH 5 - SQL Language and Database Concepts

CH 5 - SQL Language and Database Concepts

University

10 Qs

SQL MCQ

SQL MCQ

University

9 Qs

IntroToDatabases W2

IntroToDatabases W2

University

12 Qs

J277 - 2.2 - The use of SQL to search for data

J277 - 2.2 - The use of SQL to search for data

10th Grade - University

10 Qs

PL: Q2-Lesson5 IT2101

PL: Q2-Lesson5 IT2101

Assessment

Quiz

Created by

Ardi Moran

Computers

University

3 plays

Medium

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the INNER JOIN do in MySQL?

Combines rows from two or more tables based on a related column

Produces the Cartesian product of two tables

Retrieves all records from the left table

Retrieves all records from the right table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of a LEFT JOIN when there is no match?

No records are returned

Only records from the right table are returned

All records from the left table are returned with NULLs for the right table

Only matched records are returned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a RIGHT JOIN in MySQL retrieve?

No records if there is no match

Only matched records from both tables

All records from the right table and matched records from the left table

All records from the left table and matched records from the right table

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a CROSS JOIN?

To filter records based on conditions

To retrieve all records from one table

To produce the Cartesian product of two tables

To combine rows based on a related column

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of JOIN includes NULL values for unmatched records from the right table?

INNER JOIN

LEFT JOIN

RIGHT JOIN

CROSS JOIN

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a characteristic of INNER JOIN?

It retrieves all records from both tables

It only retrieves rows with matches in both tables

It does not require a joining condition

It retrieves all records from the left table

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which scenario is a CROSS JOIN typically used?

When you want to filter records based on conditions

When you want to combine every row from one table with every row from another

When you want to retrieve all records from one table

When you want to match records from two tables

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens in a LEFT JOIN if there are no matches in the right table?

Only records from the right table are returned

Only matched records are returned

All records from the left table are returned with NULLs for the right table

No records are returned

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JOIN type is most commonly used in relational databases?

LEFT JOIN

CROSS JOIN

RIGHT JOIN

INNER JOIN

10.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a RIGHT JOIN include when there is no match?

No records at all

Rows from the right table with NULLs for the left table

Only matched records

Rows from the left table with NULLs for the right table

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?