Search Header Logo

DDSQL-DP9-P10

Authored by Roni salambue

Computers

University

DDSQL-DP9-P10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MINUS will give you rows from the first query that are not present in the second query. (True or False?)

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

INTERSECT will give you the common rows found in both queries. (True or False?)

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using SET operators, the names of the matching columns must be identical in all of the SELECT statements used in the query. True or False?

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You use GROUPING functions to ______ database rows from tabulated rows.

COUNT

COMPUTE

DISTINGUISH

CREATE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Examine the following statement:

SELECT department_id, manager_id, job_id, SUM(salary) FROM employees GROUP BY GROUPING SETS((department_id, manager_id), (department_id, job_id))

What data will this query generate?

Sum of salaries for (department_id, job_id) and (department_id, manager_id)

Sum of salaries for (department_id, job_id, manager_id)

Subtotals for (job_id, manager_id)

The statement will fail.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

CUBE will cross-reference the columns listed in the ______ clause to create a superset of groups.

WHERE

SELECT

GROUP BY

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Examine the following statement:

SELECT department_id, manager_id, job_id, SUM(salary) FROM employees GROUP BY GROUPING SETS(.......);

Select the correct GROUP BY GROUPING SETS clause from the following list:

GROUP BY GROUPING SETS (department_id, AVG(salary)), (department_id, job_id), (department_id, manager_id)

GROUP BY GROUPING SETS ((department_id, manager_id), (department_id, job_id), (manager_id, job_id))

GROUP BY GROUPING SETS ((department_id, manager_id), (department_id, SUM(salary), (manager_id, job_id))

GROUP BY GROUPING SETS (department_id, salary), (department_id, job_id), (department_id, manager_id)

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?