AV_VOL_UPDM_VW(SQL View) |
Index Back |
---|---|
Mbr Org Volunteer ViewThis is a view of Initiatives that are of Type = Volunteer. To be used as a prompt table/search record. ======================================================== 5/8/01 (JPM) - Replaced Institution with Business_Unit. Also, added effdt logic to Where clause. old sql: SELECT B.BUSINESS_UNIT , B.AV_MBR_ORG_COD , B.VOL_GRP_NBR , B.EFFDT , B.EFF_STATUS , B.VOL_GROUP_NAME FROM PS_AV_VOL_GRP_TBL B WHERE B.VOL_GRP_LVL = 2 AND B.AV_MBR_ORG_COD <> ' ' ======================================================== |
SELECT B.BUSINESS_UNIT , B.AV_MBR_ORG_COD , B.VOL_GRP_NBR , B.EFFDT , B.EFF_STATUS , B.VOL_GROUP_NAME FROM PS_AV_VOL_GRP_TBL B WHERE B.VOL_GRP_LVL = 2 AND B.AV_MBR_ORG_COD <> ' ' AND B.EFFDT = ( SELECT (MAX(B1.EFFDT)) FROM PS_AV_VOL_GRP_TBL B1 WHERE B1.BUSINESS_UNIT = B.BUSINESS_UNIT AND B1.AV_MBR_ORG_COD = B.AV_MBR_ORG_COD AND B1.VOL_GRP_NBR = B.VOL_GRP_NBR) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: AV_OPR_DEF_TBL.BUSINESS_UNIT Prompt Table: AV_BUS_UNIT_TBL |
2 | AV_MBR_ORG_COD | Character(10) | VARCHAR2(10) NOT NULL | Member Organization Code |
3 | VOL_GRP_NBR | Number(9,0) | DECIMAL(9) NOT NULL | Volunteer Group |
4 | EFFDT | Date(10) | DATE | Effective Date |
5 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
6 | VOL_GROUP_NAME | Character(50) | VARCHAR2(50) NOT NULL | Volunteer Group |