AV_CRSRV_REL

(SQL View)
Index Back

CR Service Structure

CR Service Structure Record

SELECT B.INSTITUTION ,A.EMPLID ,A.EMPLID_RELATED ,A.NAME ,A.PEOPLE_RELATION ,( SELECT C.XLATLONGNAME FROM PSXLATITEM C WHERE C.FIELDNAME='PEOPLE_RELATION' AND C.EFFDT = ( SELECT MAX(Y.EFFDT) FROM PSXLATITEM Y WHERE Y.FIELDNAME=C.FIELDNAME AND Y.FIELDVALUE=C.FIELDVALUE AND Y.EFFDT <=%CurrentDateIn) AND C.FIELDVALUE = A.PEOPLE_RELATION) ,B.LT_CMTMT,B.LT_GPP,B.LT_OPL,B.LT_RCR,( SELECT D.BASE_CURRENCY FROM PS_AV_INSTALL_INST D WHERE D.INSTITUTION = B.INSTITUTION) FROM PS_AV_RELATION_VW A,PS_AV_CNST_ACC B WHERE A.EMPLID = B.EMPLID UNION ALL SELECT B.INSTITUTION ,A.EMPLID ,A.EXT_ORG_ID ,A.NAME ,A.PE_RELATION ,A.AV_RELATIONSHIPS , B.LT_CMTMT ,B.LT_GPP ,B.LT_OPL ,B.LT_RCR ,( SELECT D.BASE_CURRENCY FROM PS_AV_INSTALL_INST D WHERE D.INSTITUTION = B.INSTITUTION) FROM PS_AV_RELATE_PE_VW A,PS_AV_CNST_ACC B WHERE A.EXT_ORG_ID = B.EXT_ORG_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 RELATED_ID Character(11) VARCHAR2(11) NOT NULL Related ID
4 NAME Character(50) VARCHAR2(50) NOT NULL Name
5 RELATIONSHIP Character(2) VARCHAR2(2) NOT NULL Relationship to Employee
6 RELATIONSHIP_NAME Character(30) VARCHAR2(30) NOT NULL Relationship Name
7 LT_CMTMT Number(16,2) DECIMAL(15,2) NOT NULL LTime Commitments
8 LT_GPP Number(16,2) DECIMAL(15,2) NOT NULL LTime Gifts/Payments
9 LT_OPL Number(16,2) DECIMAL(15,2) NOT NULL LTime Open Pledges
10 LT_RCR Number(16,2) DECIMAL(15,2) NOT NULL LTime Hard Credits
11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code