RienSQL
TASK #235 · Medium · eDreams ODIGEO

Booking Funnel by Market

Your brief
The eDreams ODIGEO booking funnel has three steps logged in funnel_events: search, selection (choosing a flight) and payment. The session's market is stored in sessions.market.

Write a query that for each market returns market and the number of sessions: searches (with a search), selections (with a search and a selection) and payments (with all three steps, in any order). Add search_to_payment_pct: the percentage of payments out of searches, rounded to two decimals.
Expected columnsmarket searches selections payments search_to_payment_pcteDreams 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