Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Session Duration Insights | Sessionized Data Fundamentals
SQL for Product Analysts

bookChallenge: 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_type and avg_session_duration_minutes.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: 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_type and avg_session_duration_minutes.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

some-alt