SQL - LEFT and RIGHT JOIN
Given tables:
Employees:
ID | Name | DeptID
1 | Alice | 10
2 | Bob | 20
3 | Carol | NULL
Departments:
DeptID | DeptName
10 | Sales
30 | Marketing
What will be the result of:
Employees:
ID | Name | DeptID
1 | Alice | 10
2 | Bob | 20
3 | Carol | NULL
Departments:
DeptID | DeptName
10 | Sales
30 | Marketing
What will be the result of:
SELECT Employees.Name, Departments.DeptName FROM Employees RIGHT JOIN Departments ON Employees.DeptID = Departments.DeptID;?