#1137

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.

Laukiamo rezultato pavyzdys

Taip atrodo teisingas atsakymas — jo eilučių skaičius yra savitas, jis neprivalo sutapti su schemos lentelėmis.

idpath
1CEO
2CEO > VP-Eng
3CEO > VP-Sales

Jūsų užklausos rezultatas bus rodomas čia