
DDSQL-DP9-P10

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
Chapt.5 - Relational Database Model

Quiz
•
University
10 questions
SQL

Quiz
•
University
13 questions
Quiz-O-Tech Final Round

Quiz
•
University
20 questions
DBMS Quiz

Quiz
•
University
14 questions
Exercise Database IT 7

Quiz
•
University
19 questions
SQL4-Join/aggregate functions/group by

Quiz
•
University
19 questions
SQL Quiz

Quiz
•
University
20 questions
SQL_2

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade