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

bookChallenge: Querying Session Data

Opgave

Swipe to start coding

Write two SQL queries to find the total number of sessions for each user, and also identify users who have more than three sessions.

  • Aggregate the sessions table by user_id.
  • Count the number of sessions for each user.
  • Return the user ID and the total session count for each user.
  • Identify and return only those users who have more than three sessions.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Querying Session Data

Stryg for at vise menuen

Opgave

Swipe to start coding

Write two SQL queries to find the total number of sessions for each user, and also identify users who have more than three sessions.

  • Aggregate the sessions table by user_id.
  • Count the number of sessions for each user.
  • Return the user ID and the total session count for each user.
  • Identify and return only those users who have more than three sessions.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

some-alt