Challenge: A/B Test Metrics
Uppgift
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
usersandeventstables using theuser_idfield. - Filter the events to include only those where
event_typeis 'purchase'. - Group the results by the
ab_groupfield. - Calculate the average
valuefor each group. - Order the results by the average value in descending order.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastiskt!
Completion betyg förbättrat till 4.17
Challenge: A/B Test Metrics
Svep för att visa menyn
Uppgift
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
usersandeventstables using theuser_idfield. - Filter the events to include only those where
event_typeis 'purchase'. - Group the results by the
ab_groupfield. - Calculate the average
valuefor each group. - Order the results by the average value in descending order.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 2
single