QuestionQ20

VerifiedDisplaying Data from Multiple Tables

Review the exhibit and inspect the data in the employees table:

Question Image

You need to display every employee name together with its corresponding manager name. Evaluate this query:

Question Image

Which join option can be placed in the blank in the preceding query to produce the required output?

Explanation

A LEFT OUTER JOIN retains every row from the left table (employees e) and matches each row to its manager row in employees m through e.manager_id = m.employee_id. Employees without a matching manager are still returned, with a null manager name.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!