SQL - INNER JOIN
Given these tables:
ID | Name | DeptID
1 | Alice | 10
2 | Bob | 20
3 | Carol | 30
DeptID | DeptName
10 | Sales
20 | HR
40 | IT
What is the result of this query?
EmployeesID | Name | DeptID
1 | Alice | 10
2 | Bob | 20
3 | Carol | 30
DepartmentsDeptID | DeptName
10 | Sales
20 | HR
40 | IT
What is the result of this query?
SELECT Employees.Name, Departments.DeptName FROM Employees INNER JOIN Departments ON Employees.DeptID = Departments.DeptID;
