Challenge: Session Duration Insights
Task
Swipe to start coding
Use the data in the sessions table to find the average session duration, in minutes, for each device_type.
- Calculate the duration of each session in minutes.
- Group the sessions by
device_type. - For each device type, calculate the average session duration in minutes and return it as
avg_session_duration_minutes. - Your result should have one row per device type, with columns:
device_typeandavg_session_duration_minutes.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: Session Duration Insights
Swipe to show menu
Task
Swipe to start coding
Use the data in the sessions table to find the average session duration, in minutes, for each device_type.
- Calculate the duration of each session in minutes.
- Group the sessions by
device_type. - For each device type, calculate the average session duration in minutes and return it as
avg_session_duration_minutes. - Your result should have one row per device type, with columns:
device_typeandavg_session_duration_minutes.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single