AV_VOL_ADDM1_VW(SQL View) |
Index Back |
---|---|
Vol Sub-Group prompt 1 for AddThis is a view of the AV_VOL_GRP_TBL that is used on the search record for adding sub-groups. It will show all the Intv_Types that exist for Leaderhship groups. ======================================================== 05/08/01 (JPM) - Replaced Institution with Business_Unit. Added effdt logic to Where clause and effdt in no longer a descending key. old sql: SELECT DISTINCT INSTITUTION ,AV_MBR_ORG_COD ,EFFDT ,EFF_STATUS FROM PS_AV_VOL_GRP_TBL WHERE VOL_GRP_LVL = 1 AND AV_MBR_ORG_COD <> ' ' ======================================================== |
SELECT DISTINCT A.BUSINESS_UNIT , A.AV_MBR_ORG_COD , A.EFFDT , A.EFF_STATUS FROM PS_AV_VOL_GRP_TBL A WHERE A.VOL_GRP_LVL = 1 AND A.AV_MBR_ORG_COD <> ' ' AND A.EFFDT = ( SELECT (MAX(A1.EFFDT)) FROM PS_AV_VOL_GRP_TBL A1 WHERE A1.BUSINESS_UNIT = A.BUSINESS_UNIT AND A1.AV_MBR_ORG_COD = A.AV_MBR_ORG_COD AND A1.VOL_GRP_NBR = A.VOL_GRP_NBR AND A1.EFF_STATUS = 'A') |
# | 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 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %Date |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive Default Value: A |