By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
4 rows affected
from_node | to_node |
---|---|
1 | 2 |
1 | 3 |
1 | 4 |
5 | 1 |
from_node | to_node | lev |
---|---|---|
1 | 2 | 3 |
1 | 3 | 3 |
1 | 4 | 3 |
5 | 1 | 2 |
1 | 5 | 1 |
4 rows affected
from_node | to_node |
---|---|
1 | 2 |
1 | 3 |
1 | 4 |
5 | 1 |
from_node | to_node | lev |
---|---|---|
1 | 2 | 3 |
1 | 3 | 3 |
1 | 4 | 3 |
5 | 1 | 2 |
1 | 5 | 1 |