Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Manager-Employee Relationships | Advanced Join Techniques and Multi-Table Queries
SQL Joins in Depth

bookChallenge: 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 employees table.
  • 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.
  • Include all employees, even those who do not have a manager.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 4
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: 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 employees table.
  • 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.
  • Include all employees, even those who do not have a manager.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 4
single

single

some-alt