Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Manager-Employee Relationships | Section
SQL Joins in Depth
Sección 1. Capítulo 10
single

single

bookChallenge: Manager-Employee Relationships

Desliza para mostrar el menú

Tarea

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 employees table.
  • Give it an alias employee_name.
  • Use a self-join on the employees table to match each employee to their manager by manager_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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 10
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt