Search Header Logo

SQL - Group By, Order By, Having

Authored by Ivy Professional School

Professional Development

Professional Development

Used 13+ times

SQL - Group By, Order By, Having
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • Ungraded

Full Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • Ungraded

Email ID

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • Ungraded

Student Id (Id No.)

Evaluate responses using AI:

OFF

4.

MULTIPLE SELECT QUESTION

3 mins • 1 pt

Group By is used to

Arrange identical data into groups

Summarize data in the table

Is used to create ranges

applies aggregate and ranking functions over a particular group

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the correct order of Execution of SQL Commands:

From->Where->Group By->Having->Select->Order By

Select->Where->Having->Group By->Order By->From

Group By->Having->Select->Order By->From->Where

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Which query will summarize the total number of matches played by each country?

Select country , sum(`matches played`)

From Games

Group By Country;

Select country, count(`matches played`)

From Games

Group By Country;

Select players, country, sum(`matches played`)

From Games

Group By `matches played`;

Select *

From Games

Group By Country;

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will this query return:

SELECT DISTINCT Country FROM Customers;

Returns a list of all countries

Returns a list of all customers

Returns total number countries

Return a list of all countries which appeared in the table just once

Access all questions and much more by creating a free account

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?

Discover more resources for Professional Development