SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Monthly Listing Ratings

Unsolved

Airbnb's quality team tracks each listing's rating month by month. Some reviews were submitted without a star rating, and their stars value is NULL; those reviews must not affect the average, neither as a zero nor in the count. Write an SQL query that returns review_month (formatted as 'YYYY-MM'), listing_id and avg_stars rounded to 2 decimal places, for every month and listing that has at least one review. Order the results by review_month, then listing_id.

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 reviews
Full source dataset
11 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine