VC_CHK_ENGRPLNG(SQL View) |
Index Back |
---|---|
Tree Groups Security ViewVariable Comp: this view returns Trees/groups for a given VC Plan ID. All defined effective dated plans are returned. All trees referenced by plans and prior to the current date are returned. GB_OPRID and PNLGRPNAME allow to check if the row is accessible for the current operator and panelgroup. |
SELECT DISTINCT B.GB_OPRID , B.PNLGRPNAME , E.VC_PLAN_ID , E.EFFDT , C.GB_GROUP_ID , C2.LANGUAGE_CD , C2.DESCR FROM PS_VC_TREE_ALND_VW A , PS_GB_SECPNLG_TBL B , PS_GB_GROUP_TBL C , PS_GB_GROUPTBL_LNG C2 , PS_VC_PLAN_EFFDT E WHERE A.GB_GROUP_ID = B.GB_GROUP_ID AND B.GB_GROUP_ID = C.GB_GROUP_ID AND E.TREE_NAME = A.TREE_NAME AND A.TREE_EFFDT <= %CurrentDateIn AND C.EFFDT=( SELECT MAX(EFFDT) FROM PS_GB_GROUP_TBL GB_GROUP_TBL WHERE GB_GROUP_TBL.GB_GROUP_ID=C.GB_GROUP_ID AND GB_GROUP_TBL.EFFDT<=%CurrentDateIn) AND C.EFF_STATUS = 'A' AND E.EFF_STATUS = 'A' AND B.EFFDT=( SELECT MAX(EFFDT) FROM PS_GB_SECPNLG_TBL GB_SECPNLG_TBL WHERE GB_SECPNLG_TBL.GB_GROUP_ID=B.GB_GROUP_ID AND GB_SECPNLG_TBL.EFFDT<=%CurrentDateIn) AND C.GB_GROUP_ID = C2.GB_GROUP_ID AND C.EFFDT = C2.EFFDT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | GB_OPRID | Character(30) | VARCHAR2(30) NOT NULL | User ID |
2 | PNLGRPNAME | Character(18) | VARCHAR2(18) NOT NULL | Component Name |
3 | VC_PLAN_ID | Character(10) | VARCHAR2(10) NOT NULL | VC Plan ID |
4 | EFFDT | Date(10) | DATE NOT NULL |
Effective Date
Default Value: %date |
5 | GB_GROUP_ID | Character(15) | VARCHAR2(15) NOT NULL | Group Build ID. |
6 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
7 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |