Hi ,
I have a question how to insert this code:
insert into A (ccn, mas_Loc, wo_Num, wo_Line, parent_wo_line, Parent_wo_Num)
SELECT UNIQUE ccn, mas_Loc, WO_NUM,wo_Line, parent_wo_line, CONNECT_BY_ROOT B.PARENT_WO_NUM as PARENT_WO_NUM, LEVEL-1 as Pathlen, SYS_CONNECT_BY_PATH(trim(parent_wo_num), '/') as Path
FROM B WHERE LEVEL > 1 CONNECT BY PRIOR B.wo_num = B.parent_wo_num)
into Dataservices.
Thanks,
Prathyu