SQL - LEFT and RIGHT JOIN
You have tables:
Write a query to list all employees with their department, projects, and tasks. Include employees even if they have no department, projects, or tasks. Which query achieves this?
employees(id, name, department_id),departments(id, dept_name),projects(id, dept_id, project_name),tasks(id, project_id, task_name).Write a query to list all employees with their department, projects, and tasks. Include employees even if they have no department, projects, or tasks. Which query achieves this?
