Which SQL query gets the required output?

Examine the structure of the employees table:

There is a parent/child relationship between EMPLOYEE_ID and MANAGER_ID. You want
to display the name, joining date, and manager for all the employees. Newly hired
employees are yet to be assigned a department or a manager. For them, ‘No Manager1
should be displayed in the manager column.
Which SQL query gets the required output?

Examine the structure of the employees table:

There is a parent/child relationship between EMPLOYEE_ID and MANAGER_ID. You want
to display the name, joining date, and manager for all the employees. Newly hired
employees are yet to be assigned a department or a manager. For them, ‘No Manager1
should be displayed in the manager column.
Which SQL query gets the required output?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
http://ivrainbow65.blogspot.com/



Leave a Reply 4

Your email address will not be published. Required fields are marked *


donald

donald

Correct answer is B. Option D uses a Natural Join AND uses the ON(e.manager_id= m.employee_id, which causes an error.
Try it. The correct answer is B.

sunboy

sunboy

yes !!!!!!!!!!!! The correct answer is B

Surersh

Surersh

Yes B is correct Left outer join and NVL functions together get’s the required result

Jass

Jass

Hey Guys,

If anyone have latest dump of paper 1z0-061, please send me on [email protected].
I have scheduled my paper on this friday.Please help me on this.