By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
uid | name | generation | parent_uid | path |
---|---|---|---|---|
1 | Parent1 | 1 | 0 | 001 |
3 | Parent2 | 1 | 0 | 003 |
14 | Child7 | 2 | 3 | 003/014 |
17 | Child8 | 2 | 3 | 003/017 |
90 | Child40 | 3 | 17 | 003/017/090 |
7 | Parent4 | 1 | 0 | 007 |
55 | Child9 | 2 | 7 | 007/055 |
75 | Child12 | 3 | 55 | 007/055/075 |
95 | Child20 | 2 | 7 | 007/095 |
20 | Parent8 | 1 | 0 | 020 |