Challenge: Manager-Employee Relationships
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Manager-Employee Relationships
Svep för att visa menyn
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single