By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 7 Duplicates: 0 Warnings: 0
id | text | parent |
---|---|---|
1 | Parent message 1 | null |
2 | Parent message 2 | null |
3 | Parent message 3 | null |
4 | Child 1 of parent one | 1 |
5 | Child 1 of of child | 4 |
6 | child 2 of parent 2 | 2 |
7 | child 3 of parent 4 | 3 |
id | text | parent |
---|---|---|
1 | Parent message 1 | null |
4 | Child 1 of parent one | 1 |
5 | Child 1 of of child | 4 |
2 | Parent message 2 | null |
6 | child 2 of parent 2 | 2 |
3 | Parent message 3 | null |
7 | child 3 of parent 4 | 3 |