SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Listing View-to-Booking Rate

Unsolved

Airbnb wants to see which listings convert views into bookings. For July 2025, a listing's conversion rate is its July bookings divided by its July views, times 100. Views and bookings are counted independently by their own timestamps. Listings with no July views are left out. Listings with views but no bookings show 0. Write an SQL query that returns listing_id, views, bookings and ctr_pct rounded to 2 decimal places. Order the results by ctr_pct descending, then listing_id ascending.

SQL Query Editor (Ctrl+Enter to run)
0 characters · Valid
Canonical Solution Official

Official Solution is Hidden

Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.

Community Q&A & Discussion

Ask questions, share alternate queries, and explore solutions

0 comments
Asked By:
🏢 Airbnb

Submission History

Your recent query executions and answer checks

Execution Pipeline:
FROM listing_views
Full source dataset
19 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine