USE Study
GO

-- INNER JOIN
SELECT ENAME, DNAME
FROM EMPLOYEE
	INNER JOIN DEPARTMENT ON EMPLOYEE.DNO = DEPARTMENT.DNO

-- OUTER JOIN
SELECT E.ENAME AS EMPLOYEE, M.ENAME AS MANAGER
FROM EMPLOYEE AS E
	LEFT OUTER JOIN EMPLOYEE AS M ON E.MANAGER = M.ENO