Challenge: Manager-Employee Relationships
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain that in simpler terms?
What are the main benefits of this?
Are there any common mistakes to avoid?
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Manager-Employee Relationships
Stryg for at vise menuen
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
single