AV_CMP_PRS2_VW(SQL View) |
Index Back |
---|---|
Campaign Prospect ListThis table is a view of AV_STRAT_INTV It returns Distinct Emplid's/Ext_Org_Id's for a given INTV_CD Where the emplid and ext_org_id are not included in the AV_ACTN_INTV table. It is used to produce a list of Prospects for a Campaign. |
SELECT DISTINCT A.INSTITUTION, A.EMPLID, A.EXT_ORG_ID, A.INTV_CD FROM PS_AV_STRAT_INTV A WHERE EMPLID NOT IN ( SELECT DISTINCT A1.EMPLID FROM PS_AV_ACTN_INTV A1 WHERE A.INSTITUTION=A1.INSTITUTION AND A.EMPLID=A1.EMPLID AND A.INTV_CD=A1.INTV_CD AND A1.EMPLID <> ' ') AND EXT_ORG_ID NOT IN ( SELECT DISTINCT A1.EXT_ORG_ID FROM PS_AV_ACTN_INTV A1 WHERE A.INSTITUTION=A1.INSTITUTION AND A.EXT_ORG_ID=A1.EXT_ORG_ID AND A.INTV_CD=A1.INTV_CD AND A1.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 | EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL | External Org ID |
4 | INTV_CD | Character(10) | VARCHAR2(10) NOT NULL | Initiative Code |