DrawCode Practice Problem

Top Two Orders Per Category · Marketplace listings 38

Marketplace listings dataset, variant 38. Return orders in the top two distinct amount ranks per category as `category, order_id, amount`; include ties. Write one read-only SQLite SELECT query.


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer