SQLQuokka
Start practicing
QuestionsLearnSandboxFeaturesRoadmapFAQ

Items Priced Above Category Average

Unsolved

Walmart's pricing team wants to flag premium items: products priced strictly above the average unit price of their own category. Return `item_name`, `category`, `unit_price` and `category_avg_price` (that category's average price, rounded to 2 decimals) for every such item. Order the results by `category` ascending, then `unit_price` descending, then `item_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:
🏢 Walmart🏢 Amazon🏢 Target

Submission History

Your recent query executions and answer checks

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