SQL 道场

SQL WORKBENCH

M3 · 难度 4

CTE 再连表

Browser Postgres · Judge enabled

Prompt

用 WITH 算出每位客户总消费后,连回 customers,输出有订单客户的 name 和 total。

SQL Editor

Write, run, inspect, repeat.