database
newsgroups
Home
All Groups
Group
Topic
Archive
Search
About
Running Total for sales by week
microsoft.public.sqlserver.programming
26 Apr 2007 6:11 AM
aj70000
Hi,
Here's what I need as the output for running total
Week BU Cumulative_Amount
1 AB 100
2 AC 230
3 AB 120
4 AB 0
5 AB 120
I would like to fill in the value of week 4 to 120 using a sql
statement.
Thoughts?
AJ
Other interesting topics
Using ranking functions in a subquery to feed a CLR function values in a specified order.
Challenging Query - Please Help
JOIN Question...
create a sp from query output
Combine records to calculate
related:
MS programming
Net programming
Code programming
Security programming
Windows programming
Exchange programming