| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Kerry Frater | Date: | November 21 2006 7:30am |
| Subject: | Running Totals with MySQL | ||
| View as plain text | |||
I need to keep a running total (not an aggregate) based on data in two columns e.g. a b calculated_col 100 -10 90 50 10 150 -10 -20 120 the rows are selected on certain WHERE criteria and so the running total is not fixed data. The running total is for display on the screen. Doing this work in the language interfacing with MySQL is causing some odd side effects so I was hoping to do the work on the MySQL side instead. Kerry
| Thread | ||
|---|---|---|
| • Exception of type std::length_error | Mathieu Pagé | 13 Nov |
| • Re: Exception of type std::length_error | Warren Young | 14 Nov |
| • Re: Exception of type std::length_error | Mathieu Pagé | 14 Nov |
| • Re: Exception of type std::length_error | Mathieu Pagé | 19 Nov |
| • Re: Exception of type std::length_error | Warren Young | 20 Nov |
| • Running Totals with MySQL | Kerry Frater | 21 Nov |
| • RE: Running Totals with MySQL | Kerry Frater | 21 Nov |
| • Re: Running Totals with MySQL | Warren Young | 22 Nov |
| • RE: Running Totals with MySQL | Kerry Frater | 28 Nov |
