JPM_SUM_PEND_VW

(SQL View)
Index Back

Item count by content type

Returns count of all new profile items pending approval

SELECT I.JPM_PROFILE_ID , I.JPM_CAT_TYPE , COUNT(*) FROM PS_JPM_WF_ITEM_VW I WHERE NOT EXISTS ( SELECT 'X' FROM PS_JPM_JP_ITEMS I2 WHERE I2.JPM_PROFILE_ID = I.JPM_PROFILE_ID AND I2.JPM_CAT_TYPE = I.JPM_CAT_TYPE AND I2.JPM_CAT_ITEM_ID = I.JPM_CAT_ITEM_ID AND I2.JPM_CAT_ITEM_QUAL = I.JPM_CAT_ITEM_QUAL AND I2.JPM_CAT_ITEM_QUAL2 = I.JPM_CAT_ITEM_QUAL2 AND I2.EFFDT > I.EFFDT ) AND ( I.JPM_JP_QUAL_SET = ' ' OR EXISTS ( SELECT 'X' FROM PS_JPM_JP_QUAL_INS I4 WHERE I4.JPM_CAT_TYPE = I.JPM_CAT_TYPE AND I4.JPM_JP_QUAL_SET = I.JPM_JP_QUAL_SET AND I4.JPM_CAT_ITEM_QUAL = I.JPM_CAT_ITEM_QUAL AND I4.JPM_JP_EMP_VW_IND='Y')) GROUP BY I.JPM_PROFILE_ID , I.JPM_CAT_TYPE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 JPM_PROFILE_ID Character(12) VARCHAR2(12) NOT NULL The id, autoassigned or user assigned of the profile. This id is used to group items and other related material together into one coherent profile.
2 JPM_CAT_TYPE Character(12) VARCHAR2(12) NOT NULL The name of the type of items that will be used in a Catalog and or in a Profile.

Prompt Table: JPM_CAT_TYPES

3 JPM_CONTENT_CNT Number(3,0) SMALLINT NOT NULL Content Type Count