Viewing 2 posts - 1 through 2 (of 2 total)
I did read your article and my solution is similar but there are differences - mainly that I'm joining to sub query that is grouping - where you originally are...
May 8, 2014 at 9:44 am
#1711938
Good article.. Thanks!..
Here is how I would have solve the problem.
UPDATE a
SET a.netInventoryQty=c.inventoryQty-b.cQty
--SELECT *
FROM demand a
INNER JOIN (
select a.demandID, sum(b.orderQty) as cQty
INNER JOIN demand...
May 8, 2014 at 9:06 am
#1711908