I need help creating a view. It is on a base table which is a metadata table.It is usinf parent child relationship. There are four types of objects, Job, Workflow, Dataflow and ABAP dataflow. Job would be the root parent everytime. I have saved all the jobs of the project in another table TABLE_JOB with column name JOB_NAME. Query should iteratively start from the job and search all the child nodes and then display all child with the job name. Attached are the images of base table data and expected view data and also the excel sheet with data.Picture 1 is the sample data in base table. Picture 2 is data in the view.
Base Table | |||
PARENT_OBJ | PAREBT_OBJ_TYPE | DESCEN_OBJ | DESCEN_OBJ_TYPE |
JOB_A | JOB | WF_1 | WORKFLOW |
JOB_A | JOB | DF_1 | DATAFLOW |
WF_1 | WORKFLOW | DF_2 | DATAFLOW |
DF_1 | DATAFLOW | ADF_1 | ADF |
JOB_B | JOB | WF_2 | WORKFLOW |
JOB_B | JOB | WF_3 | WORKFLOW |
WF_2 | WORKFLOW | DF_3 | DATAFLOW |
WF_3 | WORKFLOW | DF_4 | DATAFLOW |
DF_4 | DATAFLOW | ADF_2 | ADF |
View | ||
Job_Name | Flow_Name | Flow_Type |
Job_A | WF_1 | WORKFLOW |
Job_A | DF_1 | DATAFLOW |
Job_A | DF_2 | DATAFLOW |
Job_A | ADF_1 | ADF |
Job_B | WF_2 | WORKFLOW |
Job_B | WF_3 | WORKFLOW |
Job_B | DF_3 | DATAFLOW |
Job_B | DF_4 | DATAFLOW |
Job_B | ADF_2 | ADF |
I implemented the same in oracle using CONNECT_BY_ROOT and START WITH.
Regards,
Megha