0% found this document useful (0 votes)
241 views1 page

Price List Query

This document contains a SQL query that selects the name of a price list, and the prices of three different items (with IDs 26301, 24111, and 33906) from that price list. It joins tables from the qp_list_headers and qp_list_lines_v tables based on the list header ID, and filters the results to price lists for America, excluding several specific list IDs.

Uploaded by

rv90470
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views1 page

Price List Query

This document contains a SQL query that selects the name of a price list, and the prices of three different items (with IDs 26301, 24111, and 33906) from that price list. It joins tables from the qp_list_headers and qp_list_lines_v tables based on the list header ID, and filters the results to price lists for America, excluding several specific list IDs.

Uploaded by

rv90470
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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