Find the average session duration in minutes for each user
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Find the average session duration in minutes for each user. Return username, the session count as session_count, and the average in minutes as avg_minutes, ordered by avg_minutes descending.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.