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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision