Search Header Logo

SQL - Session 6

Authored by Peter Stikker

Education

University

Used 16+ times

SQL - Session 6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?