Price List Query

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

select qph.

name Price_List_Name,
(SELECT
qpl.operand Price
from qp_list_lines_v qpl where qpl.list_header_id = qph.list_header_id
and qpl.product_attr_val_disp = '26301') Item1_26301,
(SELECT
qpl.operand Price
from qp_list_lines_v qpl where qpl.list_header_id = qph.list_header_id
and qpl.product_attr_val_disp = '24111') Item2_24111,
(SELECT
qpl.operand Price
from qp_list_lines_v qpl where qpl.list_header_id = qph.list_header_id
and qpl.product_attr_val_disp = '33906') Item3_33906
FROM
qp_list_headers qph,
qp_list_lines_v qpl
-- qp_price_breaks_v qpb
WHERE 1 = 1
AND qph.list_header_id = qpl.list_header_id
AND qpl.end_date_active IS NULL
AND qph.end_date_active IS NULL
and qpl.LIST_LINE_TYPE_CODE = 'PLL'
AND qpl.product_attr_val_disp in ('26301','24111','33906')
AND qpl.product_attr_val_disp IS NOT NULL
AND qph.attribute2 = 'AMERICA'
AND qph.list_header_id NOT IN
(101888, 3025, 231464, 247530, 167985, 167994, 188554)

BEGIN
fnd_client_info.set_org_context (116);
END;

You might also like