Database Programming Section 2 Quiz
Database Programming Section 2 Quiz
Section 2 Quiz
(Answer all questions in this section)
in (..,..,.. )
like
is null
True
False (*)
True (*)
False
5. Which of the following WHERE clauses would not select
the number 10? Mark for Review
(1) Points
SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM
employees;
SINGLES_ONLY
EXCLUSIVE
DISTINCT (*)
FIRST_ONLY
IS
WHERE (*)
FROM
True (*)
False
3. Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m
ORDER BY e.last_name, e.first_name
WHERE e.employee_id = m.manager_id;
This statement fails when executed. Which change will correct the
problem? Mark for Review
(1) Points
True
False (*)
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
<> (*)
=+
><
"=)"
">="
"<=" (*)
"+<"
100, 101, 102, 103, 104, 107, 124, 141, 142, 143, 144, 149 (*)
19
FROM employees
IS NULL
BETWEEN...AND...
LIKE (*)
15. What does the DISTINCT keyword do when it is used in
a SELECT clause? Mark for Review
(1) Points