Hey, suppose I have the following data structure,
root_id | parent_id
| 1 | 0 |
| 2 | 1 |
| 3 | 2 |
The given root_id is 1, it's also the parent_id of the second row.
How do I select the highlighted data and return in one single row? The return value will be root_id, parent_id, third_id!???