ComenzarEmpieza 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.

Este ejercicio forma parte del curso

Time Series Analysis in PostgreSQL

Ver curso

Instrucciones del ejercicio

  • Calculate a running total of the article views.

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

-- Calculate the running total for views
SELECT
    id,
    views,
    ts,
	___ AS running_total
FROM dc_news_fact;
Editar y ejecutar código