SELECT first_name, last_name, name
FROM Employees
JOIN Departments ON Employees.id = Departments.office_manager_id;
- Note: Without
ON
clause,(INNER) JOIN
is equivalent toCROSS JOIN
-
INNER JOIN
SELECT first_name, last_name, name FROM Employees INNER JOIN Departments ON Employees.id = Departments.office_manager_id;
-
LEFT JOIN
SELECT first_name, last_name, date_complete FROM Employees LEFT JOIN ComplianceTraining ON Employees.id = ComplianceTraning.employee_id;
-
Excel
VLOOKUP
equivalent SQLSELECT first_name, last_name, department, state FROM Employees JOIN departments ON Employees.department = Departments.name;