Database Programming Section 3 Quiz
Database Programming Section 3 Quiz
Database Programming Section 3 Quiz
Section 3 Quiz
(Answer all questions in this section)
True (*)
False
True
False (*)
5. Will the following statement return one row?
SELECT MAX(salary), MIN(Salary), AVG(SALARY)
FROM employees; Mark for Review
(1) Points
No, it is illegal. You cannot use more than one multi-row function in a
SELECT statement.
Yes, it will return the highest salary, the lowest salary, and the
average salary from all employees. (*)
Yes, it will return the average salary from the employees table.
AND, OR (*)
NOT (*)
LIKES
<> (*)
=+
NOT IN (..) (*)
><
"=)"
">="
"<=" (*)
"+<"
The database will display the rows in whatever order it finds it in the
database, so no particular order. (*)
100, 101, 102, 103, 104, 107, 124, 141, 142, 143, 144, 149 (*)
19
ORDER BY last_name, 3;
FROM employees