Upload
subhadeep-das
View
212
Download
0
Embed Size (px)
DESCRIPTION
joins
Citation preview
--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_JOBWHERE TBL_EMP.DEPTNO = TBL_DEPT.DEPTNO -- join of TBL_EMP and TBL_DEPTAND TBL_EMP.JOBID = TBL_JOB.JOBID -- join of TBL_EMP and TBL_JOBAND DESIGNATION = 'CLERK'AND DNAME = 'RESEARCH';