CommencerCommencez gratuitement

Calculate a running total

Business intelligence is the lifeblood of the business role. There is a saying: "if you can't measure it, you can't sell it."

As a marketing analyst, you want to create a graph of cumulative views of articles over the period of time.

Cet exercice fait partie du cours

<cours>Time Series Analysis in PostgreSQL</cours>
Voir le cours

Instructions de l’exercice

  • Calculate a running total of the article views.

Exercice interactif pratique

Essayez cet exercice en complétant ce code d’exemple.

-- Calculate the running total for views
SELECT
    id,
    views,
    ts,
	___ AS running_total
FROM dc_news_fact;
Modifier et exécuter le code