SQL - LEFT and RIGHT JOIN
Given tables:
Employees(id, name)
Departments(id, dept_name, manager_id)
Query:
What will be the output if an employee is not a manager of any department?
Employees(id, name)
Departments(id, dept_name, manager_id)
Query:
SELECT e.name, d.dept_name FROM Employees e LEFT JOIN Departments d ON e.id = d.manager_id;What will be the output if an employee is not a manager of any department?
