SQL - Session 6

SQL - Session 6

University

10 Qs

quiz-placeholder

Similar activities

PRE-TEST MODING 2 ORMAGIKA 2022

PRE-TEST MODING 2 ORMAGIKA 2022

University

10 Qs

Sql joins

Sql joins

University

6 Qs

Pretest metopen prosus III

Pretest metopen prosus III

University

10 Qs

Features of Interim Dividend - Topic 5

Features of Interim Dividend - Topic 5

KG - University

13 Qs

Digital Electronics-Final

Digital Electronics-Final

University - Professional Development

15 Qs

Introduction to presentation skills

Introduction to presentation skills

University

13 Qs

ENG1001 Tutorial 2

ENG1001 Tutorial 2

University

11 Qs

College Readiness: Are You Ready?

College Readiness: Are You Ready?

12th Grade - University

6 Qs

SQL - Session 6

SQL - Session 6

Assessment

Quiz

Education

University

Hard

Created by

Peter Stikker

Used 14+ times

FREE Resource

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

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?