Slow Query...
Hi Folks,
This query usually takes 30 mins to 1hr to complete. However now it is taking more time to complete. I am not sure if index rebuilding will help.
Need some suggestion to tune this query.
select
soi_service.row_id OrderLineID,
so.row_id OrderID,
REPLACE(soi_msisdn.service_num, '+', '') MSISDN,
decode(soi_service.net_pri,NULL,'0.00','0','0.00',LTRIM(to_char(soi_service.net_pri,'99999999.99'))) NetPrice,
decode(soi_service.discnt_amt,NULL,'0.00','0','0.00',LTRIM(to_char(soi_service.discnt_amt,'99999999.99'))) DiscountAmount,
so_x.attrib_34 Channel,
0