两个时间之间相差多少分

select round((a.process_endtime - a.process_starttime) * 24, 2) hours,
       round((a.process_endtime - a.process_starttime) * 24 * 60, 2) min,
       case
         when round((a.process_endtime - a.process_starttime) * 24 * 60) < 1 then
          0
         else
          a.row_count /
          round((a.process_endtime - a.process_starttime) * 24 * 60)
       end rat, a.row_count, a.*
  from etl_process_record a
--where a.error_description is not null
 where a.table_name = 'ODS_EBS_XLA_AE_LINES'
 order by a.record_key desc;

posted @ 2019-11-11 17:42  shu'sblog  阅读(141)  评论(0编辑  收藏  举报