Answer: Using LEFT JOIN
Find a detailed explanation of how to apply LEFT JOIN on tables.
Solution
The solution is given below:
Explanation
The explanation of the solution code is given below:
Line 2: The
SELECTquery selectsEmpNameandProjectNamefromEmployeesandProjects, respectively. We useASto set an alias for the tables.Line 3: The data is retrieved from the
Employeestable.Line 4:
LEFT JOINis applied withProjectson columnsEmpIDin both ...