表结构   id p_id(上级id)
2 1
3 1
4 2
5 3
6 7
8 7
我现在想得出所有 id的和 第一级根节点的对应关系 如下图1 2
1 3
1 4
1 5
7 6
7 8求助 在oracle10g sql该怎么写。