I didnt see any problem with your query, there is only one duplicated condition (T1.ItemCode = T2.ItemCode). But this should be a problem.
the only thing i can think of is this. you might change this a little ISNULL(T3.U_ITEM_COST, 'No') ='YES'
I didnt see any problem with your query, there is only one duplicated condition (T1.ItemCode = T2.ItemCode). But this should be a problem.
the only thing i can think of is this. you might change this a little ISNULL(T3.U_ITEM_COST, 'No') ='YES'