IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Time Series Analysis in PostgreSQL

Visualizza il corso

Istruzioni dell'esercizio

  • Calculate a running total of the article views.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

-- Calculate the running total for views
SELECT
    id,
    views,
    ts,
	___ AS running_total
FROM dc_news_fact;
Modifica ed esegui il codice