# The Ones Who Hold Attention

> Time on screen is the real vote. Find the creators earning it.

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

Domain: SQL · Difficulty: medium · Seniority: L3

## Problem

The content team is studying which creators hold viewer attention. A session counts toward a creator if the user in that session is also a creator in the content table. For each such creator, show the creator's ID and their average session length in seconds, sorted by creator ID.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/avg_session_duration_by_creator)
- [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.