SELECT TO_CHAR (l.line_number)
|| DECODE (l.shipment_number, NULL, NULL, '.' || TO_CHAR (l.shipment_number))
|| DECODE (l.option_number, NULL, NULL, '.' || TO_CHAR (l.option_number))
|| DECODE (l.component_number, NULL, NULL,
DECODE (l.option_number, NULL, '.', NULL)|| '.' ||TO_CHAR (l.component_number))
|| DECODE (l.service_number, NULL, NULL,
DECODE (l.component_number, NULL, '.', NULL)
|| DECODE (l.option_number, NULL, '.', NULL) || '.'|| TO_CHAR (l.service_number))
line_number,
h.order_number
FROM oe_order_headers_all h, oe_order_lines_all l
WHERE h.header_id = l.header_id
AND l.open_flag = 'Y'
AND h.header_id = :P_header_id
;
I see the superlative contents on your blogs and I perfectly enjoy going through them. Call Paging System | Customer Call Paging Systems | Customer Order Display
ReplyDelete