Single Row Sub Query (Sub Query Returns Single Row) Multiple Row Sub Query (Sub Query Returns Multiple Rows)
Single Row Sub Query (Sub Query Returns Single Row) Multiple Row Sub Query (Sub Query Returns Multiple Rows)
an employee?
SELECT EMPLOYEE_ID,
DEPARTMENT_ID,
(SELECT DEPARTMENT_NAME
FROM DEPARTMENTS D
WHERE D.DEPARTMENT_ID = E.DEPARTMENT_ID
) DNAME
FROM EMPLOYEES E;