If you want to a total of something, I would expect your query to calculate some, such as sum(AvailPhysical). But you don't calculate anything there. Why? Also, your requirement doesn't say anything about grouping, while your query group by many fields. Did you forget to say that you want the total for each combination of item, inventory dimension etc., or is your implementation wrong?
↧