|
-
Jun 14th, 2000, 07:49 AM
#1
Thread Starter
Addicted Member
how do i get the sum of the qty item for a particular item. For example I am trying to get a total for the amount cancelled on a particular item. So say if they order 50 and they cancel 49. I want to get 49 back as a sum for each item?????? going into a temp table???
UPDATE wd
set wd.qty_cancelled = l.qty
from #workingdata wd
INNER join lala l
ON wd.item= l.item
WHERE l.status = 'cancelled'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|