You are on page 1of 1

--To print the names, salaries of all the CLERKs who work in the RESEARCH dept

--(from TBL_EMP,TBL_DEPT,TBL_JOB):
SELECT ENAME,SAL FROM TBL_EMP,TBL_DEPT,TBL_JOB
WHERE TBL_EMP.DEPTNO = TBL_DEPT.DEPTNO
-- join of TBL_EMP and TBL_DEPT
AND TBL_EMP.JOBID = TBL_JOB.JOBID
-- join of TBL_EMP and TBL_JOB
AND DESIGNATION = 'CLERK'
AND DNAME = 'RESEARCH';

You might also like