DrawCode Practice Problem

Top Two Orders Per Category · Subscription invoices 22

Subscription invoices dataset, variant 22. 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