#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.

Sampla aschuir a bhfuiltear ag súil leis

Seo é an chuma a bheadh ar fhreagra ceart — tá a líon rónna féin aige, ní gá dó na táblaí scéime a mheaitseáil.

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

Beidh toradh d'iarratais le feiceáil anseo