27 Apr 2018 by chimcham
Can anyone help me on how can i optimize my query below. It takes more than a minute just to show 50K records. TIA. What I have tried: This is my query. with cte as ( select batch,lcoDt,runID,erpIO,style,article,leadtm,cfm_tag,EETA, asIO,planDt, class, pono,mainFab,matLeadTm,ExMillDt--,...