Understanding Inner Joins in SQL

Understanding Inner Joins in SQL

9th Grade

20 Qs

quiz-placeholder

Similar activities

JS SQL Reviewer

JS SQL Reviewer

10th Grade

15 Qs

Understanding Relational Data Models: SQL

Understanding Relational Data Models: SQL

11th Grade

20 Qs

sql queries - 2

sql queries - 2

12th Grade

20 Qs

SQL Basics

SQL Basics

9th Grade

20 Qs

UTS Basis Data II - ITM

UTS Basis Data II - ITM

University

15 Qs

DBMS LAB

DBMS LAB

University

20 Qs

Filtering

Filtering

10th - 11th Grade

15 Qs

data bases tech klasa 1

data bases tech klasa 1

9th Grade

16 Qs

Understanding Inner Joins in SQL

Understanding Inner Joins in SQL

Assessment

Quiz

Computers

9th Grade

Medium

Created by

R Eveleigh

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an INNER JOIN do in SQL?

Returns all rows from both tables, even if there is no match

Returns only rows where there is a match in both tables

Returns all rows from the left table and matched rows from the right table

Returns all rows from the right table and matched rows from the left table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to perform an inner join in SQL?

OUTER JOIN

INNER JOIN

LEFT JOIN

RIGHT JOIN

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given two tables, Students and Classes, which SQL statement correctly performs an inner join on the column ClassID?

SELECT * FROM Students LEFT JOIN Classes ON Students.ClassID = Classes.ClassID;

SELECT * FROM Students INNER JOIN Classes ON Students.ClassID = Classes.ClassID;

SELECT * FROM Students RIGHT JOIN Classes ON Students.ClassID = Classes.ClassID;

SELECT * FROM Students FULL JOIN Classes ON Students.ClassID = Classes.ClassID;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a student is not enrolled in any class, will they appear in the result of an inner join between Students and Classes?

Yes, always

No, only if there is a matching class

Yes, but only if the class is empty

Yes, if the student’s name is not NULL

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the result of an inner join?

The intersection of two tables

The union of two tables

The difference between two tables

The sum of two tables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose Table A has 10 rows and Table B has 8 rows. If 5 rows match on the join condition, how many rows will the inner join return?

8

10

5

18

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which clause is used to specify the condition for an inner join?

WHERE

ON

HAVING

GROUP BY

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?