Aan de slagBegin 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.

Deze oefening maakt deel uit van de cursus

Time Series Analysis in PostgreSQL

Bekijk cursus

Oefeninstructies

  • Calculate a running total of the article views.

Interactieve oefening met praktijkervaring

Probeer deze oefening door deze voorbeeldcode aan te vullen.

-- Calculate the running total for views
SELECT
    id,
    views,
    ts,
	___ AS running_total
FROM dc_news_fact;
Code bewerken en uitvoeren