Challenge: Manager-Employee Relationships
Oppgave
Swipe to start coding
Write a query using a self-join to list each employee's name alongside their manager's name.
- Select the employee's name from the
employeestable. - Use a self-join on the
employeestable to match each employee to their manager bymanager_id. - Select the manager's name from the joined table.
- Include all employees, even those who do not have a manager.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Manager-Employee Relationships
Sveip for å vise menyen
Oppgave
Swipe to start coding
Write a query using a self-join to list each employee's name alongside their manager's name.
- Select the employee's name from the
employeestable. - Use a self-join on the
employeestable to match each employee to their manager bymanager_id. - Select the manager's name from the joined table.
- Include all employees, even those who do not have a manager.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single