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.

Usando<strong>Subconsultas</strong> <strong>Multi</strong>-<strong>Columna</strong>Visualizar el nombre, nº nde departamento,salario y comisión n de cualquier empleado cuyosalario y comisión n se correspondan (ambos)con la comisión n y salario de cualquier empleadodel departamento 30.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);7-4 Copyright © Oracle Corporation, 1997. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!