SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Author Website and Sales Snapshot

Unsolved

The publishing team wants a one-row health snapshot of its author roster. Every author in authors counts, including those with no books. An author has a .com website when website_url contains the text '.com' anywhere (all URLs are stored in lowercase). An author has never sold a book when none of their books appear in sales, which includes authors with no books at all. Write an SQL query that returns total_authors, pct_dotcom_website and pct_never_sold, with both percentages rounded to 2 decimal places.

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