SSF_CRDHST_VW2O

(SQL View)
Index Back

Credit History View


SELECT DISTINCT A.BUSINESS_UNIT , A.EXT_ORG_ID , A.AGING_SET FROM PS_CREDIT_HISTORY A WHERE A.EXT_ORG_ID > ' ' AND 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)

# 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