SQL - LEFT and RIGHT JOIN
Given these tables:
id | name
1 | Alice
2 | Bob
3 | Carol
emp_id | amount
1 | 100
3 | 200
What is the result of:
Employeesid | name
1 | Alice
2 | Bob
3 | Carol
Salesemp_id | amount
1 | 100
3 | 200
What is the result of:
SELECT Employees.name, Sales.amount FROM Employees LEFT JOIN Sales ON Employees.id = Sales.emp_id;