Documente Academic
Documente Profesional
Documente Cultură
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 3 Quiz
(Answer all questions in this section)
1. Which of the following best describes the meaning of the LIKE operator?
Mark for Review
(1) Points
2. Which symbol in the WHERE clause means "Not Equal To"? (Choose Two)
Mark for Review
(1) Points
<> (*)
><
=+
3. You need to change the default sort order of the ORDER BY clause so that the data
is displayed in reverse alphabetical order. Which keyword should you include in the Mark for Review
ORDER BY clause? (1) Points
ASC
SORT
DESC (*)
CHANGE
4. Which clause would you include in a SELECT statement to sort the rows returned by
the LAST_NAME column? Mark for Review
(1) Points
WHERE
FROM
HAVING
ORDER BY (*)
Correct.
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 3 Quiz
(Answer all questions in this section)
6. What clause must you place in a SQL statement to have your results sorted from
highest to lowest salary? Mark for Review
(1) Points
None, the database always sorts from highest to lowest on the salary
column.
ORDER BY salary ASC
The rows will be sorted alphabetically by the FIRST_NAME and then the
LAST_NAME values
The rows will be sorted alphabetically by the LAST_NAME values. (*)
19
100, 101, 102, 103, 104, 107, 124, 141, 142, 143, 144, 149 (*)
The OR and AND conditions have the same precedence and will be evaluated
from right to left
The OR and AND conditions have the same precedence and will be evaluated
from left to right
The AND condition will be evaluated before the OR condition. (*)
10
25 (*)
50
250 (*)
Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 3 Quiz
(Answer all questions in this section)
No, it is illegal. You cannot use more than one multi-row function in a
SELECT statement.
Yes, it will return the average salary from the employees table.
Yes, it will return the highest salary, the lowest salary, and the average
salary from all employees. (*)
Yes, it will return the highest salary from each employee.
This statement fails when executed. Which change will correct the problem?
True (*)
False
You must display the player name, team id, and salary for players whose salary is
in the range from 25000 through 100000 and whose team id is in the range of
1200 through 1500. The results must be sorted by team id from lowest to highest
and then further sorted by salary from highest to lowest. Which statement should
you use to display the desired result?
(*)
SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary BETWEEN 24999.99 AND 100000.01
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id DESC, salary DESC;
SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary > 24999.99 AND salary < 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id ASC, salary DESC;
15. The conversion function TO_CHAR is a single row function. True or False?
Mark for Review
(1) Points
True (*)
False