Project 01 · Video Product Analytics

Understand viewer engagement.

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

The business question
Move from watch events to daily engagement, rolling trends, and signup-cohort retention.
What you’ll deliver
Daily activity metrics, rolling trends, viewer retention and top-performing videos.
Skills
Aggregation · Window functions · Retention
Scope
Advanced level · 4 milestones · 4 tables

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

watch_events.viewer_id → viewers.idwatch_events.video_id → videos.id
viewers
  • idintegerPK
  • countrytext
  • signup_attext
  • referred_byinteger
#idcountrysignup_atreferred_by
11US2025-01-01NULL
22US2025-01-021
33GB2025-01-021
44IN2025-01-032
55GB2025-01-04NULL
videos
  • idintegerPK
  • creator_idinteger
  • titletext
  • duration_secondsinteger
#idcreator_idtitleduration_seconds
1110SQL in ten minutes600
2210Understanding joins900
3311A day outdoors300
4412Window functions720
5512Build a project1200
watch_events
  • idintegerPK
  • viewer_idinteger
  • video_idinteger
  • watched_attext
  • watch_secondsinteger
#idviewer_idvideo_idwatched_atwatch_seconds
11112025-01-01 10:00:00300
22122025-01-01 11:00:00450
33212025-01-02 12:00:00600
44332025-01-02 13:00:00120
55142025-01-02 14:00:00700
daily_metrics
  • daytextPK
  • watch_minutesinteger
#daywatch_minutes
12025-01-0130
22025-01-0260
32025-01-0490
42025-01-05120
52025-01-0760
Start
Runtime — Learn it. Run it. Understand it.