Using a built-in SQL window function, we can quickly and easily add SQL running totals In this simple example, we have a list of sales by date, the window function to calculate the running total looks like this sum(Sales_Gross) over (order by SaleDate asc) The first part is a simple instruction to create a sum of the Sales values, but this could also be other aggregates such as Min or Max SQL Over, in this case, tells the query to use the dates to sequence oldest to newest sale dates If you would like to see more examples or need some help with it, get in touch https://selectdistinct.co.uk/sql-tips-running-totals