DDSQL-DP9-P10

DDSQL-DP9-P10

University

15 Qs

quiz-placeholder

Similar activities

Fundamentos de Base de datos

Fundamentos de Base de datos

University

20 Qs

Database

Database

12th Grade - University

20 Qs

DBMS_UNIT1

DBMS_UNIT1

University

20 Qs

SQL4-Join/aggregate functions/group by

SQL4-Join/aggregate functions/group by

University

19 Qs

SYS 1591

SYS 1591

University

10 Qs

Chapt.5 - Relational Database Model

Chapt.5 - Relational Database Model

University

20 Qs

SQL_2

SQL_2

University

20 Qs

DBMS_Quiz_1

DBMS_Quiz_1

University

15 Qs

DDSQL-DP9-P10

DDSQL-DP9-P10

Assessment

Quiz

Computers

University

Hard

Created by

Roni salambue

FREE Resource

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)

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?