Mastering SQL Joins

Mastering SQL Joins

KG

13 Qs

quiz-placeholder

Similar activities

DB2 (5/4)

DB2 (5/4)

Professional Development

10 Qs

MySQL Webinar

MySQL Webinar

Professional Development

10 Qs

SQL Queries Recap WB 7/12/20

SQL Queries Recap WB 7/12/20

9th - 10th Grade

10 Qs

Sec 1

Sec 1

10th Grade

10 Qs

Structured Query Language (SQL) Quiz

Structured Query Language (SQL) Quiz

12th Grade

10 Qs

SQL_RDBMS

SQL_RDBMS

12th Grade

12 Qs

SQL COMMANDS PRE

SQL COMMANDS PRE

11th Grade

15 Qs

RPA 04B

RPA 04B

1st - 12th Grade

13 Qs

Mastering SQL Joins

Mastering SQL Joins

Assessment

Quiz

Computers

KG

Medium

Created by

Ms. Preeti Gupta

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a JOIN in SQL?

To combine rows from two or more tables based on a related column.

To update existing records in a table.

To create a new table in the database.

To delete rows from a table.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of JOIN returns all records from the left table and matched records from the right table?

RIGHT JOIN

INNER JOIN

LEFT JOIN

FULL OUTER JOIN

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL JOIN returns all records from both tables, regardless of whether there is a match?

RIGHT JOIN

FULL OUTER JOIN

LEFT JOIN

INNER JOIN

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between INNER JOIN and OUTER JOIN?

OUTER JOIN only returns unmatched rows.

INNER JOIN can include NULL values from both tables.

INNER JOIN returns all rows from both tables.

INNER JOIN returns matched rows; OUTER JOIN returns all rows from one table with matched rows from the other.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you perform a LEFT JOIN in SQL?

SELECT columns FROM table1 LEFT JOIN table2 ON table1.common_column = table2.common_column;

SELECT columns FROM table1 RIGHT JOIN table2 ON table1.common_column = table2.common_column;

SELECT columns FROM table1 JOIN table2 USING (common_column);

SELECT columns FROM table1 INNER JOIN table2 ON table1.common_column = table2.common_column;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to specify the condition for a JOIN?

FILTER

ON

WITH

WHERE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a CROSS JOIN do in SQL?

A CROSS JOIN creates a new table with unique rows from both tables.

A CROSS JOIN only combines rows with matching values.

A CROSS JOIN filters rows based on a condition.

A CROSS JOIN combines every row of one table with every row of another table.

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?

Discover more resources for Computers