
Let's practice! - Aggregating Data
Authored by Thuan Tran
Specialty
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Obtain a grand total of the demand_loss_mw column by using the SUM function, and alias the result as MRO_demand_loss.
SELECT .......... AS .......... FROM grid;
Obtain a grand total of the demand_loss_mw column by using the SUM function, and alias the result as MRO_demand_loss.
SELECT .......... AS .......... FROM grid;
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank
Only retrieve rows WHERE demand_loss_mw is not NULL and nerc_region is 'MRO'.
SELECT SUM(demand_loss_mw) AS MRO_demand_loss FROM grid
WHERE ______;
Fill in the blank
Only retrieve rows WHERE demand_loss_mw is not NULL and nerc_region is 'MRO'.
SELECT SUM(demand_loss_mw) AS MRO_demand_loss FROM grid
WHERE ______;
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Return the COUNT of the grid_id column, aliasing the result as grid_total.
SELECT ........ AS ........ FROM grid;
Return the COUNT of the grid_id column, aliasing the result as grid_total.
SELECT ........ AS ........ FROM grid;
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Make the count more meaningful by restricting it to records where the nerc_region is 'RFC'. Name the result RFC_count.
SELECT COUNT(grid_id) AS .......... FROM grid WHERE ..........;
Make the count more meaningful by restricting it to records where the nerc_region is 'RFC'. Name the result RFC_count.
SELECT COUNT(grid_id) AS .......... FROM grid WHERE ..........;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the minimum value from the affected_customers column, but only for rows where demand_loss_mw has a value. Name the result min_affected_customers.
Find the minimum value from the affected_customers column, but only for rows where demand_loss_mw has a value. Name the result min_affected_customers.
SELECT
MIN(affected_customers) AS min_affected_customers
FROM grid
WHERE demand_loss_mw IS NOT NULL;
SELECT
MIN(affected_customers) AS min_affected_customers
FROM grid
WHERE demand_loss_mw NOT NULL;
SELECT
MIN(affected_customers) AS min_affected_customers
FROM grid
WHERE demand_loss_mw IS NULL;
SELECT
MIN(affected_customers) AS min_affected_customers
FROM grid
WHERE demand_loss_mw == NULL;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the maximum value from the affected_customers column, but only for rows where demand_loss_mw has a value. Name the result max_affected_customers.
Find the maximum value from the affected_customers column, but only for rows where demand_loss_mw has a value. Name the result max_affected_customers.
SELECT
MAX(affected_customers) AS max_affected_customers
FROM grid
WHERE demand_loss_mw IS NULL;
SELECT
MAX(affected_customers) AS max_affected_customers
FROM grid
WHERE demand_loss_mw NOT NULL;
SELECT
MAX(affected_customers) AS max_affected_customers
FROM grid
WHERE demand_loss_mw IS NOT NULL;
SELECT
MAX(affected_customers) AS max_affected_customers
FROM grid
WHERE demand_loss_mw == NULL;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Aggregate Production Planning
Quiz
•
University
10 questions
NUR351 Pediatrics F23
Quiz
•
University
10 questions
Surgical Reconstruction in Difficult Wounds
Quiz
•
University
10 questions
Perturbaciones en el cableado estructurado
Quiz
•
University
10 questions
Final Review
Quiz
•
University
11 questions
EARTHQUAKE
Quiz
•
University
6 questions
Tourist Vocab chap 1
Quiz
•
University
10 questions
สอบวัดผลหลังเรียน
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Specialty
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University