Which two statements are true regarding operators used with subqueries?

Which two statements are true regarding operators used with subqueries? (Choose two.)

Which two statements are true regarding operators used with subqueries? (Choose two.)

A.
The NOT IN operator is equivalent to IS NULL.

B.
The <ANY operator means less than the maximum.

C.
=ANY and =ALL operators have the same functionality.

D.
The IN operator cannot be used in single-row subqueries.

E.
The NOT operator can be used with IN, ANY and ALL operators.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


miriam

miriam

E is not entirely right…
!= ANY will work.
But NOT ALL won’t work.

TNK

TNK

SELECT employee_id, salary
FROM employees
WHERE NOT (salary > ALL (2000, 3000, 4000));

user

user

NOT operator(!)

Justyna

Justyna

Old documentation but still valid. (I could not find quickly newer):

http://docs.oracle.com/html/A95915_01/sqopr.htm#i1004774

ALL Compares a value with every value in a list or returned by a query. Must be preceded by =, !=, >, <, =. Evaluates to TRUE if the query returns no rows.

ANY/ SOME Compares a value to each value in a list or returned by a query. Must be preceded by =, !=, >, <, =. Evaluates to FALSE if the query returns no rows.

mr_tienvu

mr_tienvu

Correct answer is BE