Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Advanced Window Analytics | A/B Test Analysis and Window Functions
SQL for Product Analysts

bookChallenge: Advanced Window Analytics

Opgave

Swipe to start coding

Analyze user engagement by ranking users within each A/B group according to their activity level. Use window functions to achieve this advanced metric.

  • Write a SQL query that ranks users within each ab_group based on the total number of events they performed (highest number of events gets rank 1 in their group).
  • Output the following columns: ab_group, user_id, event_count, and user_rank (the rank of the user within their group).
  • Use a window function to calculate the rank (user_rank) for each user within their ab_group.
  • Order the results by ab_group and user_rank.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 6
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: Advanced Window Analytics

Stryg for at vise menuen

Opgave

Swipe to start coding

Analyze user engagement by ranking users within each A/B group according to their activity level. Use window functions to achieve this advanced metric.

  • Write a SQL query that ranks users within each ab_group based on the total number of events they performed (highest number of events gets rank 1 in their group).
  • Output the following columns: ab_group, user_id, event_count, and user_rank (the rank of the user within their group).
  • Use a window function to calculate the rank (user_rank) for each user within their ab_group.
  • Order the results by ab_group and user_rank.

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 4. Kapitel 6
single

single

some-alt