SELECT H.SCD_EVALUATION_ID , H.SCD_TEMPLATE_ID , S.SCD_SECTION_ID , TS.SCD_SEQ_NBR , TS.SCD_SECTION_NAME , H2.SCD_FROM_DATE , H.SCD_TO_DATE , H.SCD_EVALTEE_SETID , H.SCD_EVALUATEE_ID , S.SCD_SCORE , H2.SCD_VERSION_NBR FROM PS_SCD_TMPPST_STAT H INNER JOIN PS_SCD_BLD_EVAL_HD H2 ON H.SCD_EVALUATION_ID = H2.SCD_EVALUATION_ID INNER JOIN PS_SCD_BLD_SECTS S ON H.SCD_EVALUATION_ID = S.SCD_EVALUATION_ID INNER JOIN PS_SCD_TEMPL_SECT TS ON S.SCD_TEMPLATE_ID = TS.SCD_TEMPLATE_ID AND S.SCD_VERSION_NBR = TS.SCD_VERSION_NBR AND S.SCD_SECTION_ID = TS.SCD_SECTION_ID UNION ALL SELECT A.SCD_EVALUATION_ID , A.SCD_TEMPLATE_ID , '$OVERALL$' AS SCD_SECTION_ID , 99999999 AS SCD_SEQ_NBR , 'OVERALL' AS SCD_SECTION_NAME , B.SCD_FROM_DATE , B.SCD_TO_DATE , A.SCD_EVALTEE_SETID , A.SCD_EVALUATEE_ID , A.SCD_SCORE , B.SCD_VERSION_NBR FROM PS_SCD_TMPPST_STAT A INNER JOIN PS_SCD_BLD_EVAL_HD B ON A.SCD_EVALUATION_ID = B.SCD_EVALUATION_ID
|