person_id | manager_id | name |
| | |
-------------------------------
I have to display name of every person with manager name.
Yes its complete table. Thats all I have.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This one should give you all employees that have a manager, with
employee_nameandmanager_name. Replaceyour_tableby your table name.If you want to get all persons, also that without manager, replace the
JOINby aLEFT JOIN. This would returnNULLasmanager_namefor all persons withoutmanager_id.