I have a database of employees.
The row for each employee gives the name of their line manager and department. Each employee has one line manager (parent) and each line manager has several staff (children) some of whom also manage other staff, who may in turn also manage staff.
The company is expanding so staff who currently don't manage other staff may do so in future without changing their place in the heirarchy.
My question is, how can I display all of this data clearly on one page?
Ideally laid out so each level of heirarchy is indented from the previous one.
N.B. I need to do this without multiple calls to the SQL server as it can be rather slow.
TIA
H