Monday, September 30, 2019

Query to get Detail Customer Information

SELECT DISTINCT hp.party_name "Customer Name",
  hca.account_number,
  hca.status,
  hcsu.location,
  hcsu.site_use_code,
  hcsu.status loc_stat,
  ps.class,
  hcsu.site_use_id,
  hcpc.name profile_name,
  hl.address1,
  hl.address2,
  hl.address3,
  hl.city,
  hl.state,
  hl.postal_code,
  ps.customer_id,
  ps.customer_site_use_id,
  hps.identifying_address_flag,
  ps.trx_date,
  HOU.NAME "Operating Unit"
FROM apps.hz_parties hp,
  apps.hz_party_sites hps,
  apps.hz_locations hl,
  apps.hz_cust_accounts hca,
  apps.hz_cust_acct_sites hcas,
  apps.hz_cust_site_uses hcsu,
  apps.hz_customer_profiles hcp,
  apps.hz_cust_profile_classes hcpc,
  apps.ar_payment_schedules_all ps,
  apps.hr_operating_units hou
WHERE hp.party_id           = hca.party_id(+)
AND hp.party_id             = hcp.party_id
AND hp.party_id             = hps.party_id
AND hps.party_site_id       = hcas.party_site_id
AND hps.location_id         = hl.location_id
AND hca.cust_account_id     = hcas.cust_account_id
AND hcas.cust_acct_site_id  = hcsu.cust_acct_site_id
AND hca.cust_account_id     = hcp.cust_account_id
AND hca.cust_account_id     = ps.customer_id
AND hcp.profile_class_id    = hcpc.profile_class_id
AND ps.customer_site_use_id =hcsu.site_use_id
and hcsu.org_id =hou.organization_id;

2 comments:

  1. This is how my colleague Wesley Virgin's report launches in this SHOCKING and controversial VIDEO.

    You see, Wesley was in the military-and shortly after leaving-he unveiled hidden, "self mind control" tactics that the CIA and others used to get everything they want.

    THESE are the same tactics many famous people (especially those who "became famous out of nowhere") and elite business people used to become wealthy and famous.

    You probably know how you use only 10% of your brain.

    Really, that's because most of your brainpower is UNTAPPED.

    Perhaps this thought has even taken place IN YOUR own head... as it did in my good friend Wesley Virgin's head about 7 years ago, while riding an unregistered, garbage bucket of a vehicle without a license and with $3.20 on his debit card.

    "I'm very fed up with going through life check to check! When will I finally make it?"

    You took part in those types of questions, am I right?

    Your success story is going to be written. All you need is to believe in YOURSELF.

    Take Action Now!

    ReplyDelete
  2. "Query to Get Detailed Customer Information" is a data goldmine! Your breakdown of constructing such queries underscores their importance for informed decision-making. How Secure Network The insights shared illuminate the potential of data-driven strategies, enabling businesses to personalize services.

    ReplyDelete