SQL - INNER JOIN
Given these tables:
EmpID | Name | ManagerID
1 | John | NULL
2 | Jane | 1
3 | Dave | 1
DeptID | ManagerID | DeptName
10 | 1 | Sales
20 | 2 | Marketing
Write a query to find employee names and their department names by joining
Which query is correct?
EmployeesEmpID | Name | ManagerID
1 | John | NULL
2 | Jane | 1
3 | Dave | 1
DepartmentsDeptID | ManagerID | DeptName
10 | 1 | Sales
20 | 2 | Marketing
Write a query to find employee names and their department names by joining
Employees and Departments on the manager relationship.Which query is correct?
