Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 563607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:40:42+00:00 2026-05-13T12:40:42+00:00

person_id | manager_id | name | | | | ——————————- I have to display

  • 0
person_id | manager_id | name |
          |            |      |
-------------------------------

I have to display name of every person with manager name.

Yes its complete table. Thats all I have.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:40:42+00:00Added an answer on May 13, 2026 at 12:40 pm

    This one should give you all employees that have a manager, with employee_name and manager_name. Replace your_table by your table name.

    If you want to get all persons, also that without manager, replace the JOIN by a LEFT JOIN. This would return NULL as manager_name for all persons without manager_id.

    SELECT t1.name employee_name, t2.name manager_name
    FROM [your_table] t1
    JOIN [your_table] t2 ON ( t1.manager_id = t2.person_id )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following tables in MySQL: team: id, name, [more stuff] person: id,
Say I have this table: Person table -------------- PersonId Address table ------------ AddressId PersonAddressId
I have a problem. Imagine this data model: [Person] table has: PersonId, Name1 [Tag]
I have the following XML file <?xml version=1.0 ?> <Persons> <Person> <Id>1</Id> <Name>temp</Name> <Qlid>1234</Qlid>
Suppose I've got a table: Role ---- person_id company_id financial_year How can I tell
I have a Person object with two constructors - one takes an int (personId),
I have a table that holds only two columns - a ListID and PersonID.
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are
Using MySQL , I can do something like: SELECT hobbies FROM peoples_hobbies WHERE person_id
I'd like to make a simple html form where a person can upvote or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.