Subconsultas Multi-Columna
Subconsultas Multi-Columna
Subconsultas Multi-Columna
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Subconsulta “Pairwise”SQL> SELECT ename, deptno, sal, comm2 FROM emp3 WHERE (sal, NVL(comm,0)) IN4 (SELECT sal, NVL(comm,0)5 FROM emp6 WHERE deptno = 30);ENAME DEPTNO SAL COMM---------- --------- --------- ---------JAMES 30 30 950WARD 30 30 1250 500MARTIN 30 30 1250 1400TURNER 30 30 1500 0ALLEN 30 30 1600 300BLAKE 30 30 28506 rows selected.7-8 Copyright © Oracle Corporation, 1997. All rights reserved.