I want to ask whether we can use subqueries inside a sql function (consider both group and single functions). I've been trying out this simple query -
select count(select empno from emp where sal<3000) from emp;
It's giving error "missing expression". This is just a simple example.
I just want to know if this query logic is wrong or if it is not allowed in sql and if we can use subqueries inside sql function please care to mention an example.
Thanks.