SELECT EP_APPRAISAL_ID , 0 , 'DEFINE CRITERIA' , 'DTL_EST_DESCR' FROM PS_EP_APPR WHERE EP_EST_STATUS = 'CO' UNION ALL SELECT EP_APPRAISAL_ID , 14 , 'FINALIZE TP' , 'TP_DOC_SUB_STATUS' FROM PS_EP_APPR WHERE EP_TRKPROG_STATUS = 'CO' UNION ALL SELECT EP_APPRAISAL_ID , EP_CHKPT_NBR , 'CHECKPOINT ' || %NumToChar(ep_chkpt_nbr) , 'TP_DOC_SUB_STATUS' FROM PS_EP_APPR_CHECKPT WHERE ep_chkpt_complete IN ('C', 'S') UNION ALL SELECT EP_APPRAISAL_ID , 16 , 'SELF-EVALUATION' , 'DTL_SLF_DESCR' FROM PS_EP_APPR_ROLE WHERE EP_ROLE = 'E' AND EP_REVIEW_STATUS = 'CO'
|