CRED_HIST_VW6A

(SQL View)
Index Back

Credit History View


SELECT A.BUSINESS_UNIT , A.EMPLID , A.AGING_SET , A.ACCOUNT_NBR , A.AGE_CATEGORY , B.DESCR , SUM(AMOUNT) FROM PS_CREDIT_HISTORY A , PS_AGING_CAT_TBL B , PS_AGING_TBL D WHERE B.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.SETCNTRLVALUE=A.BUSINESS_UNIT AND C.REC_GROUP_ID = 'AGING' AND C.RECNAME='AGING_CAT_TBL') AND B.SETID = D.SETID AND B.AGING_SET = D.AGING_SET AND B.EFFDT = D.EFFDT AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_AGING_CAT_TBL D1 WHERE D1.SETID = D.SETID AND D1.AGING_SET = D.AGING_SET AND D1.EFFDT <= %CurrentDateIn) AND D.EFF_STATUS = 'A' AND A.AGING_SET = B.AGING_SET AND A.AGE_CATEGORY = B.AGE_CATEGORY AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CREDIT_HISTORY D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.EMPLID = A.EMPLID AND D.AGING_SET = A.AGING_SET AND D.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.EMPLID, A.AGING_SET, A.ACCOUNT_NBR, A.AGE_CATEGORY, B.DESCR

  • Related Language Record: CREDHISTVW6ALNG
  • # 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
    5 AGE_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    7 AMOUNT Signed Number(20,3) DECIMAL(18,3) NOT NULL Commuting Allowance Paid Per Cycle.