SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Authors With Five Published Books

Unsolved

A bookstore's catalog team wants to feature its most prolific authors. A book counts as published only when published_date is set; books with a NULL published_date are drafts that have not been released yet. Write an SQL query that returns author_id, author_name and book_count (the number of published books) for every author with at least 5 published books. Order the results by book_count descending, then author_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:
🏢 Meta

Submission History

Your recent query executions and answer checks

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