Multiple choice technology databases

What is the output of the Query: select * from emp where dept_no in (select dept_no from dept order by dept_no desc);

  1. It Executes Successfully

  2. It throws Error with message: missing right Parenthesis

  3. It throws Error

  4. None

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

In Oracle SQL, a subquery used with the IN clause cannot contain an ORDER BY clause. The ORDER BY is meaningless in this context since IN only checks membership, not ordering. The parser treats this as a syntax error, typically reporting ORA-00907: missing right parenthesis.