# Top Content by Lifetime Value

> Lifetime value. Measured in total watch time.

Canonical URL: <https://datadriven.io/problems/top_content_by_lifetime_value>

Domain: SQL · Difficulty: medium · Seniority: L4

## Problem

The content team wants the most-watched content overall. A view counts toward a piece of content when a page view's user matches that content's creator (treat any page view by a creator as a view of all their work). Sum the page view durations to get each content item's lifetime value. Rank by lifetime value descending, allowing ties to share a rank. Return the top three ranks, with content ID, title, and lifetime value.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/top_content_by_lifetime_value)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.