HASAN-1993
Member
- Local time
- Today, 03:45
- Joined
- Jan 22, 2021
- Messages
- 89
i have table like>>
The output I want
What I want is unlimeted Calculating of all the Nodes of the Accounts tree
But I want a solution that is fast because I have a lot of data and I don't want the query to take long to work, thank you
Parent_ID | Acc_ID | value |
0 | 1 | 0 |
1 | 13 | 1 |
13 | 121 | 1 |
121 | 121001 | 1 |
0 | 2 | 0 |
2 | 23 | 1 |
23 | 131 | 1 |
131 | 131001 | 1 |
The output I want
Parent_ID | Acc_ID | Value |
0 | 1 | 3 |
1 | 13 | 3 |
13 | 121 | 2 |
121 | 121001 | 1 |
0 | 2 | 3 |
2 | 23 | 3 |
23 | 131 | 2 |
131 | 131001 | 1 |
What I want is unlimeted Calculating of all the Nodes of the Accounts tree
But I want a solution that is fast because I have a lot of data and I don't want the query to take long to work, thank you
Last edited: