By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.30 |
Records: 7 Duplicates: 0 Warnings: 0
id | parent_id | title |
---|---|---|
1 | null | 1 |
2 | null | 2 |
3 | 1 | 3 |
4 | 3 | 4 |
5 | 2 | 5 |
6 | 5 | 6 |
7 | 6 | 7 |
id | title | parent_id |
---|---|---|
1 | 1 | null |
3 | 3 | 1 |
4 | 4 | 3 |
id | title | parent_id |
---|---|---|
1 | 1 | null |
id | title | parent_id |
---|---|---|
2 | 2 | null |