SQL 道场

SQL WORKBENCH

M4 · 难度 5

按时间的累计金额

Browser Postgres · Judge enabled

Prompt

按 created_at(同日按 id)从早到晚,算出累计总金额 running,输出 id、amount、running。

SQL Editor

Write, run, inspect, repeat.