RienSQL
TASK #234 · Medium · eDreams ODIGEO

A/B Test Conversion

Your brief
eDreams ODIGEO is running an A/B test of its search results page: every session in sessions is assigned to a variant ab_variant. A payment is an event with step = 'payment' in funnel_events; a session can have several of them.

Write a query that for each variant returns ab_variant, the number of all its sessions sessions (including sessions without events), the number of sessions with at least one payment converted_sessions, and the conversion conversion_rate: the percentage of sessions with a payment among all sessions of the variant, rounded to two decimals.
Expected columnsab_variant sessions converted_sessions conversion_rateeDreams ODIGEO
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
customerscustomer_id, full_name, country, signup_date
sessionssession_id, customer_id, market, ab_variant, device, session_date
funnel_eventsevent_id, session_id, step, event_time
bookingsbooking_id, session_id, customer_id, market, booking_date, origin, destination, total_amount, status