
Let's practice! - Aggregating Data

Quiz
•
Specialty
•
University
•
Hard
Thuan Tran
FREE Resource
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;
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 ______;
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;
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 ..........;
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.
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.
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;
Similar Resources on Wayground
9 questions
Chapter 1

Quiz
•
University
10 questions
DET50093 OBJECTIVE

Quiz
•
University
10 questions
Customer service quiz

Quiz
•
1st Grade - University
10 questions
Formative Quiz: Cancer Rehabilitation

Quiz
•
University
10 questions
Visual Merchandising

Quiz
•
KG - University
8 questions
Dizzy dizzy

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Specialty
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University