NOT IN
, , NULL
. , , ... IS NOT NULL
, .
SELECT E_ID,
E_NAME,
PROJECT,
MANAGER
FROM EMPLOYEE_PROJECT INNER JOIN EMP_MASTER ON
EMPID = E_ID AND
LOCATION = 'MUMBAI' AND
E_ID NOT IN (SELECT E_ID
FROM SALARY_ADVANCE
WHERE E_ID IS NOT NULL)
NOT EXISTS
, .
SELECT E_ID,
E_NAME,
PROJECT,
MANAGER
FROM EMPLOYEE_PROJECT INNER JOIN EMP_MASTER ON (
EMPID = E_ID AND
LOCATION = 'MUMBAI' AND
NOT EXISTS (SELECT E_ID
FROM SALARY_ADVANCE as SA
WHERE SA.E_ID = EMP*table*.E_ID))
source
share