LEFT JOIN
to retrieve data even when there’s no matching record in the joined table. Retrieve all employees and their project names, including those without assigned projects.employees
, departments
employees
Columns: employee_id
, first_name
, last_name
, department_id
, salary
departments
Columns: department_id
, department_name
employee_id
, first_name
, last_name
, department_name
select * from employees