Let's sort it!

Let's sort it!

University

10 Qs

quiz-placeholder

Similar activities

Heme/Onc & Endocrine WCF Review

Heme/Onc & Endocrine WCF Review

University

10 Qs

Antidepressant, Antimanic & Anticonvulsant Review

Antidepressant, Antimanic & Anticonvulsant Review

University

10 Qs

Advanced Concepts Quiz Two Review

Advanced Concepts Quiz Two Review

University

10 Qs

Gestion des stocks

Gestion des stocks

KG - Professional Development

10 Qs

SEUIL DE RENTABILITE

SEUIL DE RENTABILITE

University

10 Qs

Jenis-jenis Pelayanan

Jenis-jenis Pelayanan

University

10 Qs

Test-Taking Strategies

Test-Taking Strategies

KG - Professional Development

12 Qs

Metrology - Introduction to metrology

Metrology - Introduction to metrology

University

10 Qs

Let's sort it!

Let's sort it!

Assessment

Quiz

Specialty

University

Practice Problem

Hard

Created by

Thuan Tran

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

In this exercise, you'll practice the use of ORDER BY using the grid dataset. It's loaded and waiting for you! It contains a subset of wider publicly available information on US power outages.

Yes

OK, let go!

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Select description and event_date from grid table. Your query should return the first 5 rows, ordered by event_date.

SELECT ........ (........) ........, event_date FROM grid

........ ........ ........;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select the top 20 rows from description, nerc_region and event_date. Order by nerc_region, affected_customers & event_date. Event_date should be in descending order.

SELECT

TOP (20) PERCENT description, nerc_region, event_date

FROM grid

ORDER BY

nerc_region,

affected_customers,

event_date DESC;

SELECT

TOP (20) description, nerc_region, event_date

FROM grid

ORDER BY

nerc_region,

affected_customers,

event_date DESC;

SELECT

TOP (20) description, nerc_region, event_date

FROM grid

ORDER

nerc_region,

affected_customers,

event_date DESC;

SELECT

TOP (20) description, nerc_region, event_date

FROM grid

ORDER BY

nerc_region,

affected_customers,

event_date;

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Select the description and event_year columns. Return rows where the description is 'Paris'.

SELECT ......., ....... FROM grid WHERE ....... = 'Paris';

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Select the nerc_region and demand_loss_mw columns, limiting the results to those where affected_customers is greater than or equal to 500000.

SELECT ......., ....... FROM grid WHERE ....... >= 500000;

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Update your code to select description and affected_customers, returning records where the event_date was the 22nd December, 2023.

SELECT nerc_region, demand_loss_mw FROM grid

WHERE affected_customers >= 500000;

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  • Fill in the blank

  • Limit the results to those where the affected_customers is BETWEEN 50000 and 150000.

SELECT description, affected_customers, event_date FROM grid

WHERE _____;

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?