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.

Self join joined columns

AHMAD ELSAEDINov 9 2015 — edited Nov 9 2015

Hi

I am new to sql , and I am confused about how to write theĀ  joined columns on the self join

for Example :

select emp.last_name,emp.hire_date,mgr.last_name,mgr.hire_date

from employees emp

join

employees mgr

on (emp.employee_id=mgr.manager_id) ----------(1)---------vs------(2)------- on(mgr.employee_id=emp.manager_id)

where emp.hire_date<mgr.hire_date

I am using the employees table on hr schema

Thanks!

This post has been answered by SalimWer on Nov 9 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2015
Added on Nov 9 2015
3 comments
331 views