CREDHISTACCVWLN(SQL View) |
Index Back |
---|---|
Credit History |
SELECT A.BUSINESS_UNIT , A.ACCOUNT_NBR , A.ACCOUNT_TERM , A.EFFDT , B.LANGUAGE_CD , B.DESCRSHORT FROM PS_CREDIT_HISTORY A , PS_AGING_CAT_LANG B WHERE A.EXT_ORG_ID <> ' ' AND 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 A.AGING_SET = B.AGING_SET AND A.AGE_CATEGORY = B.AGE_CATEGORY AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_AGING_CAT_TBL D WHERE D.SETID = B.SETID AND D.AGING_SET = B.AGING_SET AND D.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.ACCOUNT_NBR, A.ACCOUNT_TERM, A.EFFDT, A.AGE_CATEGORY, B.LANGUAGE_CD,B.DESCRSHORT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | ACCOUNT_NBR | Character(10) | VARCHAR2(10) NOT NULL | Account Nbr |
3 | ACCOUNT_TERM | Character(4) | VARCHAR2(4) NOT NULL | Account Term |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
6 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |