AV_GIFT_P_VW

(SQL View)
Index Back

Posted / Non Adjusted Gift VW

View which returns gifts that have been posted, and have not been adjusted. Used on the adjust gift window as a prompt for GIFT_NO ========================================================= JM - View changed on 01/27/00. Previous view is below. In addition to the existing where clause another condition was added, and that is to only select av_sess_type = 'G' or 'AG'. SELECT DISTINCT C.NAME, A.EMPLID, A.GIFT_NO, A.GIFT_AMT, A.GIFT_TYPE, A.GIFT_DT FROM PS_AV_GIFT_DTL A, PS_AV_SESSION_TBL B, PS_PERSONAL_DATA C WHERE A.SESSION_NO = B.SESSION_NO AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EMPLID=C.EMPLID AND A.SA_ID_TYPE='P' ======================================================== 7.27.00 SELECT A.INSTITUTION, A.CURRENCY_CD_ENTRY, C.NAME, A.EMPLID, A.GIFT_NO, A.GIFT_AMT, A.GIFT_TYPE, A.GIFT_DT FROM PS_AV_GIFT_DTL A, PS_AV_SESSION_TBL B, PS_PERSONAL_DATA C WHERE A.SESSION_NO = B.SESSION_NO AND B.AV_SESS_TYPE IN('G','AG') AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EMPLID=C.EMPLID AND A.SA_ID_TYPE='P'

SELECT A.BUSINESS_UNIT , A.CURRENCY_CD_ENTRY , C.NAME , A.EMPLID , A.GIFT_NO , A.GIFT_AMT , A.GIFT_TYPE , A.GIFT_DT FROM PS_AV_GIFT_DTL A , PS_AV_SESSION_TBL B , PS_HCR_PERSON_NM_I C WHERE A.BUSINESS_UNIT=B.BUSINESS_UNIT AND A.SESSION_NO = B.SESSION_NO AND B.AV_SESS_TYPE IN('G','AG') AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EMPLID=C.EMPLID AND A.SA_ID_TYPE='P'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CURRENCY_CD_ENTRY Character(3) VARCHAR2(3) NOT NULL Currency Code
3 NAME Character(50) VARCHAR2(50) NOT NULL Name
4 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PEOPLE_SRCH

5 GIFT_NO Character(11) VARCHAR2(11) NOT NULL Gift Nbr
6 GIFT_AMT Signed Number(17,2) DECIMAL(15,2) NOT NULL Gift Amount
7 GIFT_TYPE Character(6) VARCHAR2(6) NOT NULL Gift Type

Prompt Table: AV_GFT_TYPE_VW

8 GIFT_DT Date(10) DATE Gift Date