SQL Quiz 3

SQL Quiz 3

University

20 Qs

quiz-placeholder

Similar activities

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

IT 101 - Quiz 3

IT 101 - Quiz 3

University

20 Qs

DWDM Unit1 Quiz

DWDM Unit1 Quiz

University

21 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Algo Quiz

Algo Quiz

University

16 Qs

SQL Quiz 3

SQL Quiz 3

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Zhannat Akylbek

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL keyword is used to sort the result set?

ORDER BY

SORT

SORT BY

FILTER

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?

SELECT * FROM Persons ORDER BY FirstName DESC;

SELECT * FROM Persons ORDER ON customer_name;

SELECT * FROM Persons ORDER customer_name;

SELECT * FROM Persons SORT BY 'FirstName' DESC;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how can you return the number of records in the "Persons" table?

SELECT COUNT(*) FROM Persons;

SELECT COLUMNS() FROM Persons;

SELECT COUNT() FROM Persons;

SELECT COLUMNS(*) FROM Persons;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement will select all rows from a table called "Customers" and orders the result by "customer name"?

SELECT * FROM Customers ORDER BY customer_name;

SELECT * FROM Customers ORDER ON customer_name;

SELECT * FROM Customers ORDER customer_name;

SELECT * FROM Customers ORDERED customer_name;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are the five built-in aggregate functions provided by SQL?

COUNT, SUM, AVG, MAX, MIN

SUM, AVG, MIN, MAX, MULT

SUM, AVG, MULT, DIV, MIN

SUM, AVG, MIN, MAX, NAME

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct order of keywords in a SELECT statement

HAVING, GROUP BY, ORDER BY

HAVING, ORDER BY, GROUP BY

GROUP BY, HAVING, ORDER BY

GROUP BY, ORDER BY, HAVING

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ... operator compares the value of the attribute to each value returned by the subquery. This keyword (which must follow a comparison operator) returns TRUE if the comparison is TRUE for any of the values in the column that the subquery returns.

ANY

ALL

EXISTS

AT LEAST

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 Computers