Challenge: Manager-Employee Relationships
Tâche
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. - Give it an alias
employee_name. - 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.
- Give it an alias
manager_name. - Include all employees, even those who do not have a manager.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.76
Challenge: Manager-Employee Relationships
Glissez pour afficher le menu
Tâche
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. - Give it an alias
employee_name. - 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.
- Give it an alias
manager_name. - Include all employees, even those who do not have a manager.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single