Single-Row Subqueries
The main query expects the sub query to return only one value.Check out the following example, which should look familiar:SQL> select ename, deptno, sal 2 from emp 3 where deptno = 4 ( select deptno 5 from dept 6 where loc = ‘NEW YORK’ );ENAME DEPTNO SAL———- ——— ———CLARK 10 […]
Recent Comments