select to_char(to_date(A.DAY,'yyyymmdd'),'yy-mm-dd') day,a.day d, sum(actual_move) actual_move, sum(uptime_loss) uptime_loss, sum(utilization_loss) utilization_loss, sum(wph_loss) wph_loss, max(nvl(wip_eqp,0) + nvl(wip_dummy,0)) wip from rpt_tool_perf_sx a where A.c_type= :P42_eqptype and a.day > to_char(sysdate-32,'yyyymmdd') group by a.day order by a.day |