By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | description | parentid |
---|---|---|
1 | Group1 | 0 |
2 | Group2 | 0 |
11 | Group1Sub1 | 1 |
21 | Group2Sub1 | 2 |
211 | Group2Sub211 | 21 |
212 | Group2Sub212 | 21 |
id | description | parentid |
---|---|---|
1 | Group1 | 0 |
2 | Group2 | 0 |
11 | Group1Sub1 | 1 |
21 | Group2Sub1 | 2 |
211 | Group2Sub211 | 21 |
212 | Group2Sub212 | 21 |