SELECT A.SNAME, A.SPATH, B.ERR_MSG, B.RTN_DETAIL_MESSAGE FROM CM_SRC A, CM_JOB_SRC_LOG B WHERE B.JOB_ID = '20150921000221' AND B.ERR_CODE IS NOT NULL AND A.SRC_ID IN (SELECT B.SRC_ID FROM CM_JOB_SRC_LOG CJS WHERE CJS.JOB_ID = '20150921000221' AND CJS.ERR_CODE IS NOT NULL);