Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

re: SYS_CONNECT_BY_PATH Hierarchy Query

Rao MMay 13 2021

Hi,
Quick question on the Hierarchy Query.
In the query of Oracle BOM need to multiply the qty from the top to the lowest nodes.
Query is working fine with all low level rows. But need to multiply the qty from low to the top.
Had the below connect by which is giving correct values : .0228*1*1 or .0228*1*1*2
depending on number of levels.
However need to get the multiplication of these qty. How to parse this sting ex: .0228*1*1 = .0228.
Is there a easy way instead of using the sting commands (instr) to parse the values and multiply.
SYS_CONNECT_BY_PATH(q_bom.QTY, '*'),2) QTY_PATH
thanks

This post has been answered by Solomon Yakobson on May 13 2021
Jump to Answer
Comments
Post Details
Added on May 13 2021
9 comments
605 views