Hi Luis Martin, I was check execution plan, table [#Stocks] use table scan. ;with tempStockTrans (RokokID, PitaCukai, GudangID, Calculate,...
I have query, but the response is very slowly. Where the wrong ? :( Please give some optimised solutions Thx declare @DSOLocalID VARCHAR(3),...
Separate names with a comma.