EBS Customizations (MOSC)

MOSC Banner

BOM Query with Parent and child

edited Sep 8, 2020 1:32AM in EBS Customizations (MOSC) 3 commentsAnswered

Hi All,

I'm looking for a BOM query which gives me Parent and Child details. I have below one but what i need is differently to display last child also in parent which no component next to it.

For example :

Parent

Level 1 Chiild - child2

Level 2 Child2 - Child3

I'm expecting an output like this

Parent

Level 1 Chiild - child2

Level 2 Child2 - Child3

Level 3/NA Child3 - -

Pls help on this one as CONNECT BY PRIOR didnt help me to get in above format. Sample Query is attached here.

SELECT  LPAD (' ', LEVEL * 2) || LEVEL order_level,

msib.segment1 parent,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center