SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Brands With a Premium Range

Unsolved

Meta Shops wants to promote brands with a real product range. The catalog can list the same product more than once (for example in different pack sizes), so a brand's product count is the number of distinct product names. A brand qualifies when it has at least 2 distinct products and the average price across all of its catalog rows is strictly greater than 3. Write an SQL query that returns brand, product_count and avg_price rounded to 2 decimal places. Order the results by brand 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 products
Full source dataset
10 rows total
Ready. Type a query to see live execution.
Clause: Auto-Sync · AlaSQL Engine