CUST_CORPBAL_VW

(SQL View)
Index Back

Corporate Customer Balances


SELECT A.CORPORATE_SETID , A.CORPORATE_CUST_ID , SUM(B.BAL_AMT) , b.currency_cd FROM PS_CUSTOMER A , PS_CUST_DATA B WHERE A.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.RECNAME = 'CUSTOMER' AND C.SETCNTRLVALUE = B.BUSINESS_UNIT) AND A.CUST_ID = B.CUST_ID AND A.CUST_STATUS IN ('A','I') GROUP BY a.corporate_setid, a.corporate_cust_id, b.currency_cd

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CORPORATE_SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CORPORATE_CUST_ID Character(15) VARCHAR2(15) NOT NULL Corporate Customer
3 BAL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Item Balance
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code