Home > database > Oracle construction projects in the total packet forwarding problem, similar to a parent-child relat
Oracle construction projects in the total packet forwarding problem, similar to a parent-child relat
Time:09-17
Similar to this, the project owner, contractor, then contractor subcontract to another contractor, this time the contractor has become the meaning of project owner, there may be multiple subcontract, can now demand is to list the total package a subcontracting contract name amount b f g h and so on
Then for example also to C and D B
How to list who is a total package of the contractor or subcontractor for who, who finally doing this project, each link is how many amount?
CodePudding user response:
The above figure in addition to sorting didn't tell the difference, the original table, need what results?
CodePudding user response:
[ reference quote=1/f weixin_45069503 response:] The above figure in addition to sorting didn't tell the difference, the original table, need what results?
CodePudding user response:
Like this? Select the project owner, contractor, lpad (contractor, length (contractor) + level 1, '-') from sc_module Start with the project owner=A Construction of the connect by the prior=operator The order siblings by contractor
CodePudding user response:
Tip the device identifier is invalid, and then highlight quality
CodePudding user response:
Wrote lpad 3 buildings, is the lowercase L, not the I