Hi,
Need your help on the below scenario.
Input data looks like this
parent | child |
1 | A |
1 | B |
1 | C |
1 | D |
2 | X |
2 | Y |
2 | Z |
2 | B |
Expected output:
COLUMN1 | LEVEL |
1 | 1 |
A | 1.1 |
B | 1.2 |
C | 1.3 |
D | 1.4 |
2 | 1 |
X | 1.1 |
Y | 1.2 |
Z | 1.3 |
B | 1.4 |
Please advise me how to implement logic for getting this output.
Thanks in advance