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

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.

Uploaded by

Ssnathan Hai
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)
316 views1 page

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.

Uploaded by

Ssnathan Hai
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

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy