Loading interview...
Top Content by Lifetime Value
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
Interview Prompt
The content team defines a content item's lifetime value as the total viewing duration (sum of dur_ms from page views) across all viewers of that item. Only include content with at least 1 view where duration is not null. Return content ranked in the top 3 by lifetime value; if items tie, include all at that rank. Show content ID, title, and lifetime value.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision