The name path from the top to an employee
For each employee in emp, build the chain of names from the topmost manager down to them, joined by > (e.g. CEO > VP-Eng > EngMgr). Return id and path, ordered by id.
Ejemplo de respuesta esperada
Así es una respuesta correcta: tiene su propio número de filas y no tiene por qué coincidir con las tablas del esquema.
| id | path |
|---|---|
| 1 | CEO |
| 2 | CEO > VP-Eng |
| 3 | CEO > VP-Sales |
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesión