Joins
Lesson 17Author : 🦒
Last Updated : December, 2017
Code
-- Add the extra branch
INSERT INTO branch VALUES(4, "Buffalo", NULL, NULL);
SELECT employee.emp_id, employee.first_name, branch.branch_name
FROM employee
JOIN branch -- LEFT JOIN, RIGHT JOIN
ON employee.emp_id = branch.mgr_id;