Skip to content
Advertisement

Oracle SQL combining table information and creating output

I have two tables in Oracle SQL developer and I am trying to figure out how to display “fname, ssn” and the employees corresponding manager “fname, snn”. Below are the tables that I have created but I cant seem to get the employee information to correspond to their subsequent manager.

Employee Table

Department Table

Desired Output

This is what I have so far. It just to show the employee info and manager# as I am not sure how to actually get it to link to a managers name then display as what I want for output

Advertisement

Answer

Looks like you need this:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement