SQL - Session 6

SQL - Session 6

University

10 Qs

quiz-placeholder

Similar activities

WATER SUPPLY

WATER SUPPLY

University

15 Qs

BE (LO2) Part 1

BE (LO2) Part 1

University

15 Qs

II Pei Français

II Pei Français

University

10 Qs

Research Week 1 Review

Research Week 1 Review

University

14 Qs

Fútbol

Fútbol

1st Grade - University

10 Qs

Computer System Servicing: Occupational Health and Safety

Computer System Servicing: Occupational Health and Safety

10th Grade - University

15 Qs

Tag questions

Tag questions

University

10 Qs

SÍNDROME DE GUILLAIN- BARRÉ | SEMANA DEL CEREBRO-NEUROLOGÍA

SÍNDROME DE GUILLAIN- BARRÉ | SEMANA DEL CEREBRO-NEUROLOGÍA

University

10 Qs

SQL - Session 6

SQL - Session 6

Assessment

Quiz

Education

University

Practice Problem

Hard

Created by

Peter Stikker

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Will a Cartesian product of A x B have the same result as the Cartesian product B x A?

Yes

No

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Will the following two queries produce the same result?

SELECT A.[name]

FROM A JOIN B ON A.FK = B.PK

WHERE B.[name] LIKE '%a%';

SELECT A.[name]

FROM A, B

WHERE A.FK = B.PK AND B.[name] LIKE '%a%';

yes

no

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Will the following two queries produce the same result?

SELECT A.[name]

FROM A JOIN B ON A.FK = B.PK

WHERE B.[name] LIKE '%a%';

SELECT [name]

FROM A

WHERE FK IN (SELECT PK

FROM B

WHERE [name] LIKE '%a%');

yes

no

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Although all three produce the same result, which should be used?

The version with two tables in FROM

The version with a subquery in WHERE

The version that uses JOIN

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The JOIN condition usually is....

primary key to primary key

foreign key to primary key

foreign key to foreign key

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Filtering groups is done using?

SELECT

GROUP BY

HAVING

FILTER

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can aggregation functions be used in a HAVING?

yes

no

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?

Discover more resources for Education