By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 7 Duplicates: 0 Warnings: 0
ID | Parent |
---|---|
1 | null |
2 | 1 |
3 | 1 |
4 | 3 |
5 | 4 |
6 | 4 |
7 | 6 |
lvl | Parent | id |
---|---|---|
1 | null | 1 |
2 | 1 | 2 |
2 | 1 | 3 |
3 | 3 | 4 |
4 | 4 | 5 |
4 | 4 | 6 |
5 | 6 | 7 |
max_depth_of_tree |
---|
5 |