12.07.2015 Views

Subconsultas Multi-Columna

Subconsultas Multi-Columna

Subconsultas Multi-Columna

SHOW MORE
SHOW LESS
  • 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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!