7 lines
343 B
MySQL
7 lines
343 B
MySQL
|
/*11. Write a query in SQL to display the first name of all employees and the first name of their manager including those who
|
||
|
does not working under any manager.*/
|
||
|
SELECT E.first_name AS "Employee Name",
|
||
|
M.first_name AS "Manager"
|
||
|
FROM employees E
|
||
|
LEFT OUTER JOIN employees M
|
||
|
ON E.manager_id = M.employee_id;
|