Oracle Quoting Customer information Query..
SELECT hp.party_name, hp.party_number, ca.account_number, hp.party_type,
hp.party_id, ca.cust_account_id
FROM
HZ_PARTIES HP,
HZ_CUST_ACCOUNTS CA
WHERE ( UPPER(PARTY_NAME) LIKE :1
AND (PARTY_NAME LIKE :2))
AND ( hp.party_type in ('PERSON','ORGANIZATION')
AND hp.status = 'A'
AND trunc(nvl(ca.account_activation_date,sysdate)) <= trunc(sysdate)
AND trunc(nvl(ca.account_termination_date,sysdate)) >= trunc(sysdate)
AND HP.party_id = CA.party_id
AND ca.status = 'A'
and rownum <= 5000 ) ORDER BY party_name,account_number
Regards,
Sal.
SELECT hp.party_name, hp.party_number, ca.account_number, hp.party_type,
hp.party_id, ca.cust_account_id
FROM
HZ_PARTIES HP,
HZ_CUST_ACCOUNTS CA
WHERE ( UPPER(PARTY_NAME) LIKE :1
AND (PARTY_NAME LIKE :2))
AND ( hp.party_type in ('PERSON','ORGANIZATION')
AND hp.status = 'A'
AND trunc(nvl(ca.account_activation_date,sysdate)) <= trunc(sysdate)
AND trunc(nvl(ca.account_termination_date,sysdate)) >= trunc(sysdate)
AND HP.party_id = CA.party_id
AND ca.status = 'A'
and rownum <= 5000 ) ORDER BY party_name,account_number
Regards,
Sal.
No comments:
Post a Comment