0% found this document useful (0 votes)
92 views

Entity Name Table Name Join Condition(s) Select Column

This document contains a summary of entity names, table names, and join conditions for various columns to be selected from multiple tables. It includes details on joining customer, salesperson, account, ship to, order, and invoice line data from different tables based on primary and foreign keys like party_id, header_id, and lookup codes.

Uploaded by

Sumit
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

Entity Name Table Name Join Condition(s) Select Column

This document contains a summary of entity names, table names, and join conditions for various columns to be selected from multiple tables. It includes details on joining customer, salesperson, account, ship to, order, and invoice line data from different tables based on primary and foreign keys like party_id, header_id, and lookup codes.

Uploaded by

Sumit
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Entity Name Table Name Join Condition(s) Select column

dha.SOLD_TO_PARTY_
Customer Name hz_parties hp  hp.party_name
ID = hp.party_id(+)

sales.SALESPERSON_I
D = party1.party_id AND
sales.header_id =
doo_sales_credits sales, dha.header_id AND
typ.SALES_CREDIT_T
sales Person party1.party_name
YPE_ID =
sales.SALES_CREDIT_
TYPE_ID AND
typ.name = ‘Quota Sales
Credit’

hz_parties
party1,msc_sales_credit_t
ypes typ

address.header_id(+) =
dha.header_id AND
doo_order_addresses  address.ADDRESS_USE
Customer Account Name address  , _TYPE(+) = ‘BILL_TO’ acct.account_name 
hz_cust_accounts  acct  AND
address.cust_acct_id =
acct.cust_account_id(+)

address.header_id(+) =
dha.header_id AND
doo_order_addresses  address.ADDRESS_USE
Customer Account
address  , _TYPE(+) = ‘BILL_TO’ acct.account_number
Number
hz_cust_accounts  acct  AND
address.cust_acct_id =
acct.cust_account_id(+)

AND
ship_address.header_id(+
) = dha.header_id AND
doo_order_addresses
ship_address.ADDRESS
ship to Customer ship_address , hz_parties ship_party.party_name
_USE_TYPE(+) =
ship_party
‘SHIP_TO’ AND
ship_party.party_id(+) =
ship_address.party_id
AND
ship_address.header_id(+
) = dha.header_id AND
ship_address.ADDRESS
_USE_TYPE(+) =
doo_order_addresses
‘SHIP_TO’ AND ship_to_loc.ADDRESS1
ship_address , hz_parties
ship_party.party_id(+) = ||’ ‘||
ship_party ,
ship to address ship_address.party_id ship_to_loc.ADDRESS2
hz_party_sites
AND ||’ ‘ ||ship_to_loc.city ||’ ‘||
party_site , hz_locations
party_site.party_site_id(+ ship_to_loc.state  
ship_to_loc
)=
ship_address.party_site_i
d AND
ship_to_loc.location_id(+
) = party_site.location_id

AND val.lookup_type =
‘ORA_DOO_ORDER_T
Order Type fnd_lookup_values val YPES’ AND val.meaning
val.lookup_code =
dha.order_type_code

ra_customer_trx_lines_al rctla.sales_order =
AR Invoice Line Detail
l rctla dha.order_number

You might also like