Join the OracleApps88 Telegram group @OracleApps88to get more information on Oracle EBS R12/Oracle Fusion applications.

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.

Wednesday, June 22, 2011

Displaying column values in Row Query

(SELECT SUBSTR (MAX (SYS_CONNECT_BY_PATH (instance_number, ',')), 2)
FROM (SELECT ool.line_id, instance_number,
ROW_NUMBER () OVER (PARTITION BY line_id ORDER BY instance_number) rn
FROM csi_item_instances csi,
oe_order_lines_all ool
WHERE ool.line_id = oola.line_id
AND ool.line_id = csi.last_oe_order_line_id
AND ool.inventory_item_id = csi.inventory_item_id
AND TRUNC (SYSDATE) BETWEEN TRUNC (active_start_date)
AND TRUNC
(NVL (active_end_date,
SYSDATE
)
))
START WITH rn = 1
CONNECT BY PRIOR rn = rn - 1 AND PRIOR line_id = line_id) "IB Instance #",

No comments:

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect