SQL SELECT Statement Quiz

SQL SELECT Statement Quiz

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Jennifer Brown

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the SELECT statement in SQL?

To delete data from a table

To update data in a table

To create a new table

To retrieve data from a table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which column in the 'earthquake' table uniquely identifies each row?

occurred_on

earthquake_id

magnitude

place

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the asterisk (*) signify in a SELECT statement?

Selects no columns

Selects all columns

Selects only text columns

Selects only numeric columns

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you count the number of rows in a table using SQL?

Using the COUNT function

Using the AVG function

Using the SUM function

Using the MAX function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to filter rows based on a condition?

ORDER BY

HAVING

GROUP BY

WHERE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the ORDER BY clause in SQL?

To group rows

To join tables

To sort rows

To filter rows

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you sort data in descending order using SQL?

Using the DESC keyword

Using the DOWN keyword

Using the SORT keyword

Using the ASC keyword

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?