select distinct EDITTABLE as recname,'impacts'||SYS_CONNECT_BY_PATH(EDITTABLE,'->') as PROMPT_RECORD_TREE
from psrecfield r1
where (SUBSTR(EDITTABLE,1,1) <> '%' and EDITTABLE<> ' ')
START with EDITTABLE='CSGC_CMPRND_TBL'
CONNECT BY NOCYCLE PRIOR recname=EDITTABLE
union
select distinct EDITTABLE as recname,'impacted'||SYS_CONNECT_BY_PATH(EDITTABLE,'->') as PROMPT_RECORD_TREE
from psrecfield r1
where (SUBSTR(EDITTABLE,1,1) <> '%' and EDITTABLE<> ' ')
START with recname='CSGC_CMPRND_TBL'
CONNECT BY NOCYCLE PRIOR EDITTABLE = recname order by 2 asc
Peopesoft record hierarchy using Prompt tables
Summary:
This is useful in understanding the data flow between tables. specially in instances where peoplesoft is heavily customised.
Currently it works with oracle database.
CSGC_CMPRND_TBL replace by your record name.
