SQL Tips Calculate Running Totals

Опубликовано: 28 Апрель 2026
на канале: Select Distinct
158
1

A running total is a cumulative sum of a sequence of values.

It is calculated by adding the current row value to the previous row running total.

One of the most used reasons you might need to create a running total is to show a balance as at the date of the transaction

Here is a breakdown of how to use the SQL window function to generate a running total

https://www.selectdistinct.co.uk/2023...

#SQL #sqltips #dataanalytics


Music by www.bensound.com