Picking an outer join type
Imagine that eSymphony will grow their employee base and they decide to create departments based on the activities. You want to find out what department each employee works in. Additionally, employees that are not related to a department need to show up. Similarly, departments with no employees need to show up. The final table should look like this:
What type of join should you use to combine information from the Employee
and Department
tables?
This exercise is part of the course
Introduction to Oracle SQL
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
