Playground / freeform query bench
dataset garden_shop ▾
⌘↵ to run
1
2
3
4
5
6
7
2
3
4
5
6
7
-- top categories by revenue this year select cat.category_name, sum(oi.quantity * oi.unit_price) as revenue from order_items oi join products p on p.product_id = oi.product_id join categories cat on cat.category_id = p.category_id group by 1 order by revenue desc;
Results History
12 rows · 23 msCopyDownload CSV
| category_name | revenue |
|---|---|
| Seeds & Bulbs | $48,210.50 |
| Tools | $39,884.00 |
| Pots & Planters | $31,455.75 |
| Soil & Compost | $27,019.20 |
| Watering | $18,332.40 |
| Outdoor Decor | $12,901.10 |
| Fertilizer | $9,744.85 |
🚧 This is a static preview of the playground. The live in-browser SQL engine (DuckDB-WASM) and editor land in Phase 1.