Hi,
ive EMP table as below with dataset.
i want to come up with a query that takes any employee with the manager and transform those 2 rows into one (kinda like pivot) as below:
FOr instance consider Clark whose supervisor is King (president)
expected output:
ENAME SUPERVISOR_NAME ENAME_JOB SUPERVISOR_JOB ENAME_SAL SUPERVISOR_SAL
=======================================================================
CLARK KING MANAGER PRESIDENT 2450 5000
Any idea on a good query with excellent performance?
Using 11g & 12g.
thanks