Let's practice! - Aggregating Data

Let's practice! - Aggregating Data

University

6 Qs

quiz-placeholder

Similar activities

Pre-test

Pre-test

University

10 Qs

Aggregate Production Planning

Aggregate Production Planning

University

10 Qs

Clinical Week 4

Clinical Week 4

University

10 Qs

NUR351 Pediatrics F23

NUR351 Pediatrics F23

University

10 Qs

Surgical Reconstruction in Difficult Wounds

Surgical Reconstruction in Difficult Wounds

University

10 Qs

PEM in Adults

PEM in Adults

University

10 Qs

Epithelial Tissue

Epithelial Tissue

University

10 Qs

สอบวัดผลหลังเรียน

สอบวัดผลหลังเรียน

University

10 Qs

Let's practice! - Aggregating Data

Let's practice! - Aggregating Data

Assessment

Quiz

Specialty

University

Practice Problem

Hard

Created by

Thuan Tran

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;