Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Two Left Joins in a query

User_VGSA7Mar 31 2022

Hi,
I have a SELECT statement like this:

SELECT department_name, last_name, project_number
FROM departments d
   LEFT JOIN employees e
       ON d.department_number = e.department_number
   LEFT JOIN projects p
       ON e.employee_id = p.employee_id

For the first LEFT JOIN, "departments" is the left table and "employees" is the right table.
For the second LEFT JOIN, "projects" is the right table. What is the left table for this join?

This post has been answered by Frank Kulash on Mar 31 2022
Jump to Answer
Comments
Post Details
Added on Mar 31 2022
6 comments
3,155 views