select * from O0TASK_HIST o0task_hist inner join O0TASK o0task on o0task.idpk = o0task_hist.idpk_o0task