MySQL Forums
Forum List  »  Newbie

Re: cumulative query grouped by createdate,warehouse,country and location
Posted by: John Martins
Date: October 05, 2018 06:15AM

Hello Peter,
thanks for your reply. independently of the queries I posted, the issue is to implement a query that trigger the first dataset-example above (with the columns country, warehouse, createdate, location, quantity) to the second dataset-example including the column "cum" containing the cumulative sum grouped by the first 4 columns.
In a simple example as yours, I can calculate the cunulative sum grouped by one column. It is difficult to do the same by grouping 4 columns and this is a point of my request.

Options: ReplyQuote


Subject
Written By
Posted
Re: cumulative query grouped by createdate,warehouse,country and location
October 05, 2018 06:15AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.