MySQL recursive subquery [duplicate]
问题 This question already has answers here : Generating Depth based tree from Hierarchical Data in MySQL (no CTEs) (4 answers) Closed 6 years ago . Not sure the title accurately reflects what I need to do and this question is possibly out of the scope of Stack Overflow as I do not have much to work with, other than my problem. I will explain my scenario ... I have a reporting web application. There are three levels of users Senior Managers, Managers and Team Members. Each Manager is responsible