0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
57 Ansichten1 Seite
To find a customer's account number based on their location, first query the location table to get the location ID, then query the party sites table using the location ID to get the party site ID, then query the customer account sites table using the party site ID to get the customer account ID, and finally query the customer accounts table using the customer account ID to retrieve the customer's account number.
Originalbeschreibung:
Query to Get Get Customer Details Based on Location
Originaltitel
Query to Get Get Customer Details Based on Location
To find a customer's account number based on their location, first query the location table to get the location ID, then query the party sites table using the location ID to get the party site ID, then query the customer account sites table using the party site ID to get the customer account ID, and finally query the customer accounts table using the customer account ID to retrieve the customer's account number.
To find a customer's account number based on their location, first query the location table to get the location ID, then query the party sites table using the location ID to get the party site ID, then query the customer account sites table using the party site ID to get the customer account ID, and finally query the customer accounts table using the customer account ID to retrieve the customer's account number.
If we know the location,we get the customer from the below queries.
First get the location_id,Pass this into below query
select * from apps.hz_party_sites where location_id = '5388571' ---Pass Location _id here you get party_site_id . select * from apps.hz_cust_acct_sites_all where party_site_id = '4387649' --Pass party site id here You get cust_account_id select * from apps.hz_cust_accounts where cust_account_id = '76531'--Pass cust_a ccount_id here, you get the customer number nothing but the Account_number column in this query