Which SQL keyword is used to sort the result set?

SQL Quiz 3

Quiz
•
Computers
•
University
•
Hard
Zhannat Akylbek
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
DBMS LAB

Quiz
•
University
15 questions
HSC YEP 2021

Quiz
•
University
20 questions
DreamWeaver CS6

Quiz
•
University
15 questions
Exception handling -oracle plsql

Quiz
•
University
20 questions
Animate Test Review

Quiz
•
9th Grade - University
15 questions
Mastering the Photoshop Tools Panel

Quiz
•
8th Grade - University
20 questions
Kuis Fundamental Flutter

Quiz
•
University
20 questions
SQL

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade