ALTACCT_XRF_VW2

(SQL View)
Index Back

Alternate Accounts XREF


SELECT B.SETID , B.ACCOUNT , A.SETID , A.ALTACCT , A.EFFDT , A.EFF_STATUS , A.DESCR , A.DESCRSHORT FROM PS_ALTACCT_TBL A , PS_ALTACCT_XREF B WHERE A.EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_ALTACCT_TBL B WHERE A.SETID = B.SETID AND A.ALTACCT = B.ALTACCT) AND B.ALTACCT_SETID = A.SETID AND B.ALTACCT = A.ALTACCT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
3 SETID1 Character(5) VARCHAR2(5) NOT NULL SetID Value

Default Value: OPR_DEF_TBL_FS.SETID

4 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
5 EFFDT Date(10) DATE NOT NULL Effective Date

Default Value: %date

6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: A

7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
8 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description