RienSQL
TASK #233 · Easy · eDreams ODIGEO

Revenue by Market

Your brief
eDreams ODIGEO sells flights in several European markets. Consider only confirmed bookings from bookings (status = 'confirmed').

Write a query that for each market returns market, the number of confirmed bookings confirmed_bookings, and their total value revenue (the sum of total_amount).
Expected columnsmarket confirmed_bookings revenueeDreams 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