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

Oppgave

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Querying Session Data

Sveip for å vise menyen

Oppgave

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

some-alt