runtime
Video Product Analytics · brief

project 01 Video Product Analytics

Understand viewer engagement.

Measure video-platform activity, viewing trends, retention and popular content.

business question
Move from watch events to daily engagement, rolling trends, and signup-cohort retention.
you deliver
Daily activity metrics, rolling trends, viewer retention and top-performing videos. Exported as a report with your checked SQL, result evidence and written findings.
skills
Aggregation · Window functions · Retention
scope
4 milestones · 4 tables · advanced
Start the first milestone

milestones

  1. 01Daily active users & engagementMeasure daily activity and user engagement.
  2. 02Rolling averages & missing datesCalculate rolling trends while accounting for missing dates.
  3. 03Cohorts & exact-day retentionMeasure whether users return on a specific day after joining.
  4. 04Top N per group & tiesFind the leading records within each group and handle ties.

data Streamly · 4 tables

Viewer signups and watch events. Repeated views are intentional; daily_metrics has missing days.

viewers4 columns · 8 rows
idinteger · keycountrytextsignup_attextreferred_byinteger
1US2025-01-01NULL
2US2025-01-021
3GB2025-01-021
4IN2025-01-032
5GB2025-01-04NULL

showing 5 of 8 rows

videos4 columns · 6 rows
idinteger · keycreator_idintegertitletextduration_secondsinteger
110SQL in ten minutes600
210Understanding joins900
311A day outdoors300
412Window functions720
512Build a project1200

showing 5 of 6 rows

watch_events5 columns · 26 rows
idinteger · keyviewer_idintegervideo_idintegerwatched_attextwatch_secondsinteger
1112025-01-01 10:00:00300
2122025-01-01 11:00:00450
3212025-01-02 12:00:00600
4332025-01-02 13:00:00120
5142025-01-02 14:00:00700

showing 5 of 26 rows

daily_metrics2 columns · 5 rows
daytext · keywatch_minutesinteger
2025-01-0130
2025-01-0260
2025-01-0490
2025-01-05120
2025-01-0760

all 5 rows

Video Product Analytics — SQL project · Runtime