LoslegenKostenlos loslegen

Analyze data distribution

Many product managers are adept at exploring the data around the product features for which they are responsible. In this scenario, you are a data savvy product manager handling the newsfeed for a social media application. You suspect that your newsfeed data collection infrastructure might have an issue with anomalous data. The average number of views per article per sample period is skewed way upwards from the typical number of views.

You start by examining the reading behavior of the top five articles in a one week reporting period to get a sense of what the reading behavior looks like for five popular but otherwise typical news articles.

The dc_news_dim and dc_news_fact tables are available to you.

Diese Übung ist Teil des Kurses

Time Series Analysis in PostgreSQL

Kurs anzeigen

Interaktive Übung

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

-- Calculate the max, average, and continuous median views
SELECT
  ___ AS max,
  ___ AS average,
  ___ AS median
FROM dc_news_fact;
Code bearbeiten und ausführen