ST_GROUP_VW4

(SQL View)
Index Back

Group View4

View of all active grants without a valuation record or have an 'open' valuation record. Used for prompting on Emplid for the value grants process.

SELECT DISTINCT A.STOCK_ID , A.EMPLID , A.NAME FROM PS_ST_GROUP_VW A WHERE NOT EXISTS ( SELECT 'X' FROM PS_ST_GRANT_VALUE B WHERE B.STOCK_ID = A.STOCK_ID AND B.EMPLID = A.EMPLID AND B.GRANT_NBR = A.GRANT_NBR AND B.ST_VALUE_REASON = 'I' ) AND ( A.REPRICE_GRANT_NBR = ' ' OR EXISTS ( SELECT 'X' FROM PS_ST_GRANT_VALUE C WHERE C.STOCK_ID = A.STOCK_ID AND C.EMPLID = A.EMPLID AND C.GRANT_NBR = A.REPRICE_GRANT_NBR AND C.ST_VALUE_REASON = 'I' ))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 STOCK_ID Character(10) VARCHAR2(10) NOT NULL Stock ID
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 NAME Character(50) VARCHAR2(50) NOT NULL Name