Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
I have a input table where I have gotall the primary id.
From the each Primary _ID , I need to see respective child . I need to show the child_ID till the point we reach the end.
for eg- we pick ID =1 , so it has 10,11 &12 (as the child).
After the completion of 1st iteration , again we would have Primary_ ID =2
In 2nd iteration , we have Primary_ID = 3
the process will go so on.. till we reach E.O.F.
Many thanks in advance !!
Hi All
I have solve the same with Hierarchy function .
Code-
Master:
LOAD id as Parent_id,
[Child id] as Child_id
FROM
(ooxml, embedded labels, header is 1 lines, table is Table1);
Hir:
Hierarchy (Child_id,Parent_id,Prev,Value,A,Path,'/',Detpth)
load
Child_id,
Parent_id,
Parent_id as Prev
resident Master;
Drop table Master;
Hi All
I have solve the same with Hierarchy function .
Code-
Master:
LOAD id as Parent_id,
[Child id] as Child_id
FROM
(ooxml, embedded labels, header is 1 lines, table is Table1);
Hir:
Hierarchy (Child_id,Parent_id,Prev,Value,A,Path,'/',Detpth)
load
Child_id,
Parent_id,
Parent_id as Prev
resident Master;
Drop table Master;