Multiple choice technology databases

The below query Executes Successfully without Error: select * from emp where dept_no in (select dept_no from dept order by dept_no desc);

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This query will fail because ORDER BY is not allowed in a subquery used with an IN clause. The IN operator only needs to check membership, not ordering. Oracle throws ORA-00907: missing right parenthesis or similar syntax error when encountering ORDER BY in this position.