SELECT B.FT_RUN_ID , ( SELECT COUNT(DISTINCT A.EMPLID) FROM PS_FT_ASSIGNMNT_IN A WHERE (A.JOBCODE <> A.FT_JOBCODE OR A.GRADE <> A.FT_GRADE OR A.SAL_ADMIN_PLAN <> A.FT_SAL_ADMIN_PLAN OR A.POSITION_NBR <> A.FT_POSITION_NBR) AND A.FT_RUN_ID=B.FT_RUN_ID AND A.FT_ERROR_FLAG <> 'Y') , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE A.FT_RUN_ID=B.FT_RUN_ID AND A.FT_ERROR_FLAG <> 'Y') , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE A.JOBCODE <> A.FT_JOBCODE AND A.FT_RUN_ID=B.FT_RUN_ID AND A.FT_ERROR_FLAG <> 'Y') , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE (A.GRADE <> A.FT_GRADE OR A.SAL_ADMIN_PLAN <> A.FT_SAL_ADMIN_PLAN) AND A.FT_RUN_ID=B.FT_RUN_ID AND A.FT_ERROR_FLAG <> 'Y') , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE A.POSITION_NBR <> A.FT_POSITION_NBR AND A.FT_RUN_ID=B.FT_RUN_ID AND A.FT_ERROR_FLAG <> 'Y') , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE A.FT_RUN_ID=B.FT_RUN_ID) , ( SELECT COUNT(1) FROM PS_FT_ASSIGNMNT_IN A WHERE FT_ERROR_FLAG = 'Y' AND A.FT_RUN_ID=B.FT_RUN_ID) FROM PS_FT_CWBOBJ_HDR B WHERE B.ft_object_ident = '1000'
|