CRED_HIST_VW9A

(SQL View)
Index Back

Credit History View


SELECT A.BUSINESS_UNIT , A.EXT_ORG_ID , A.AGING_SET , A.ACCOUNT_NBR FROM PS_CREDIT_HISTORY A WHERE A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CREDIT_HISTORY D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.EXT_ORG_ID = A.EXT_ORG_ID AND D.AGING_SET = A.AGING_SET AND D.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.EXT_ORG_ID , A.AGING_SET, A.ACCOUNT_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID
3 AGING_SET Character(5) VARCHAR2(5) NOT NULL Aging Set
4 ACCOUNT_NBR Character(10) VARCHAR2(10) NOT NULL Account Nbr