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

bookChallenge: A/B Test Metrics

Oppgave

Swipe to start coding

Write a SQL query to calculate the average value of the 'purchase' event for each A/B group, and determine which group performed better.

  • Join the users and events tables using the user_id field.
  • Filter the events to include only those where event_type is 'purchase'.
  • Group the results by the ab_group field.
  • Calculate the average value for each group.
  • Order the results by the average value in descending order.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 4. 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: A/B Test Metrics

Sveip for å vise menyen

Oppgave

Swipe to start coding

Write a SQL query to calculate the average value of the 'purchase' event for each A/B group, and determine which group performed better.

  • Join the users and events tables using the user_id field.
  • Filter the events to include only those where event_type is 'purchase'.
  • Group the results by the ab_group field.
  • Calculate the average value for each group.
  • Order the results by the average value in descending order.

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 4. Kapittel 2
single

single

some-alt