CRED_HIST_VW5A

(SQL View)
Index Back

Credit History View


SELECT A.BUSINESS_UNIT , A.EMPLID , A.AGING_SET , A.ACCOUNT_NBR FROM PS_CREDIT_HISTORY A WHERE A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_CREDIT_HISTORY C WHERE C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.EMPLID = A.EMPLID AND C.AGING_SET = A.AGING_SET AND C.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.EMPLID, 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 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 AGING_SET Character(5) VARCHAR2(5) NOT NULL Aging Set
4 ACCOUNT_NBR Character(10) VARCHAR2(10) NOT NULL Account Nbr