Created
March 10, 2016 15:05
-
-
Save vincentdeelen/2359a9d1004db21256ee to your computer and use it in GitHub Desktop.
Employee query for table data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT emp.empno | |
, emp.ename | |
, emp.job | |
, NVL(TO_CHAR(emp.mgr),'-') mgr | |
, TO_CHAR(emp.hiredate, 'DD-MON-YYYY') hiredate | |
, emp.sal | |
, emp.comm | |
, emp.deptno | |
FROM emp | |
, dept | |
WHERE emp.deptno = dept.deptno | |
AND dept.dname = :DNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment