Hi,
I have a sql table with below structure:
I want to write a query which will display the levels with all the reporting manager ids.. There can only be 5 levels.
So i want something like below:
I tried with a lot of recursive queries with and then pivoting the result, but doesnt work.
Appreciate your help on this.