Skip to content
Advertisement

Tag: connect-by

Oracle SQL Recursive Query When FieldType is Subpage

I have a table PanelDefn which has list following fields I would like to write a query which recursively gives the data for SubPanel when I query for Panel. It means whenever we encounter FieldType=11 , we need to have recursive query for that. I tried using connect-by. Answer I guess you need below query – This will recursively generate

Oracle SQL/PLSQL: Hierarchical recursive query

I have asked very similar questions before but still haven’t achieved the correct result… third times the charm but I now have a stable parent-child relationship to work with. Every row in the multi-level data set has a cost. For a specific row I need to find the lowest level and roll-up the cost. Then my users will compare the

Advertisement