Mastering SQL Joins

Mastering SQL Joins

KG

13 Qs

quiz-placeholder

Similar activities

bài kiểm tra tin giưa kỳ tin học lớp 5

bài kiểm tra tin giưa kỳ tin học lớp 5

5th Grade

10 Qs

[Lớp 12] Access - Ôn tập

[Lớp 12] Access - Ôn tập

12th Grade

14 Qs

EmTech Q1 Post Test 3

EmTech Q1 Post Test 3

11th Grade

10 Qs

KT 15' (12) 2

KT 15' (12) 2

12th Grade

10 Qs

Quiz: Programming a Calculator. Part 1 and Part 2 Review

Quiz: Programming a Calculator. Part 1 and Part 2 Review

7th - 8th Grade

17 Qs

หน่วยที่ 1 ความรู้เบื้องต้นเกี่ยวกับเครื่องพิมพ์ดีด

หน่วยที่ 1 ความรู้เบื้องต้นเกี่ยวกับเครื่องพิมพ์ดีด

9th - 12th Grade

10 Qs

Fairy Tales and Middle Ages Vocabulary

Fairy Tales and Middle Ages Vocabulary

10th Grade

14 Qs

Pre-Assessment: ICT 10 Orientation Day

Pre-Assessment: ICT 10 Orientation Day

10th Grade

10 Qs

Mastering SQL Joins

Mastering SQL Joins

Assessment

Quiz

Computers

KG

Practice Problem

Medium

Created by

Ms. Preeti Gupta

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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.

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?