Oracle says scalar subqueries are not valid expressions in the following places:
In WHEN conditions of CASE expressions
In GROUP BY and HAVING clauses
But why the following queries don't give any error.(Don't go to the purpose,I am just trying some random examples)
select case when (select id from employee where id=60)=60 then 1 end if from employee;
select id from employee group by id having (select id from employee where id=60)=60;
Let there be only one id with value 60