SSR_BR_BPRVWNLD

(SQL View)
Index Back

BPV Reject WC View


SELECT DISTINCT A.SSR_BR_INDEX_ID ,A.SSR_BR_MSGUUID ,A.SSR_BR_ENRL_SQ_NLD ,A.SAD_BR_BPV_SEQ_NLD ,A.EMPLID , A.SSR_BR_TRANS_DTTM ,( SELECT COUNT(*) FROM PS_SSR_BR_IDER_NLD B WHERE A.SSR_BR_INDEX_ID =B.SSR_BR_INDEX_ID AND A.SSR_BR_MSGUUID=B.SSR_BR_MSGUUID )"ERRORS" FROM PS_SSR_BR_BPBO_NLD A WHERE A.SSR_BR_ACCEPTED='N' AND NOT EXISTS ( SELECT 'X' FROM PS_SSR_BR_ERBP_NLD B WHERE B.SSR_BR_INDEX_ID=A.SSR_BR_INDEX_ID AND B.SSR_BR_MSGUUID=A.SSR_BR_MSGUUID AND B.SSR_BR_ENRL_SQ_NLD=A.SSR_BR_ENRL_SQ_NLD AND B.SAD_BR_BPV_SEQ_NLD = A.SAD_BR_BPV_SEQ_NLD AND B.EMPLID=A.EMPLID AND B.REJECT_FLAG='R' ) AND A.SSR_BR_TRANS_DTTM = ( SELECT MAX(C.SSR_BR_TRANS_DTTM) FROM PS_SSR_BR_BPBO_NLD C WHERE C.EMPLID=A.EMPLID AND C.SSR_BR_ENRL_SQ_NLD=A.SSR_BR_ENRL_SQ_NLD AND C.SAD_BR_BPV_SEQ_NLD = A.SAD_BR_BPV_SEQ_NLD ) GROUP BY A.SSR_BR_INDEX_ID,A.SSR_BR_MSGUUID,A.SSR_BR_ENRL_SQ_NLD ,A.SAD_BR_BPV_SEQ_NLD,A.EMPLID, A.SSR_BR_TRANS_DTTM

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SSR_BR_INDEX_ID Character(40) VARCHAR2(40) NOT NULL Transaction Index ID
2 SSR_BR_MSGUUID Character(50) VARCHAR2(50) NOT NULL Message ID
3 SSR_BR_ENRL_SQ_NLD Character(20) VARCHAR2(20) NOT NULL 2020-04-15 bug 31180485 - enlarged enrollment seq nbr
4 SAD_BR_BPV_SEQ_NLD Number(2,0) SMALLINT NOT NULL BPV sequence number
5 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
6 SSR_BR_TRANS_DTTM DateTime(26) TIMESTAMP Transaction DateTime
7 DESCR Character(30) VARCHAR2(30) NOT NULL Description