LoslegenKostenlos starten

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.

Diese Übung ist Teil des Kurses

<Kurs>Time Series Analysis in PostgreSQL</Kurs>
Kurs ansehen

Übungsanweisungen

  • Calculate a running total of the article views.

Interaktive praktische Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

-- Calculate the running total for views
SELECT
    id,
    views,
    ts,
	___ AS running_total
FROM dc_news_fact;
Code bearbeiten und ausführen