Sep 21, 2004 #1 jonnyk Programmer Jan 11, 2001 19 GB I need to add a column to a sql statement that will give me a running total by group sql is selct item, week, sum(qty) group by item, week The column will need to add qty as a running total for each item for each week Any ideas
I need to add a column to a sql statement that will give me a running total by group sql is selct item, week, sum(qty) group by item, week The column will need to add qty as a running total for each item for each week Any ideas
Sep 21, 2004 #2 SQLSister Programmer Jun 18, 2002 7,292 US Look at using the with rollup clause in your select. Questions about posting. See faq183-874 Upvote 0 Downvote