db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Boss: dashboard layer

A dashboard reads one number per day. Stack the layers: a per-order view, a daily view on top, and a materialized copy that the dashboard reads. The final query reads mv_dash and must stay under 300 buffers.

task

Create views v_order_totals and v_daily(d, orders, revenue_cents) and materialized view mv_dash with v_daily's rows; the dashboard query on mv_dash must read under 300 buffers.

hints