Good Morning Kunal.
Not sure whether my earlier response got through.
The next query relates the 'cost' element to the offering:
select
o.offering_id,o.offering_name,
rp.rate_plan_name,
rd.item_text,rd.text_1,rd.text_4,rd.category,rd.category_class,rd.status,rd.item_type,
ori.id,ori.parent_id,rp.rate_plan_id,rd.rate_plan_id
from usm_offering o,usm_offering_rplan_inclusion ori,usm_rate_plan rp,usm_rate_definition rd
where o.offering_id in (select
o.offering_id
from usm_rate_definition rd, usm_rate_plan rp, usm_offering_rplan_inclusion ori, usm_offering o
where
rp.rate_plan_id = rd.rate_plan_id
and ori.child_id = rp.rate_plan_id
and o.offering_id = ori.parent_id )
and rd.item_type=3 and
rd.status = 1 and
o.offering_id = ori.parent_id and
ori.child_id = rp.rate_plan_id and
rp.rate_plan_id = rd.rate_plan_id
order by o.offering_id
Thanks and kind regards, Louis.