SQL 道场

SQL WORKBENCH

M2 · 难度 4

每位客户的总消费(含 0)

Browser Postgres · Judge enabled

Prompt

输出每位客户 name 和总消费 total,没下单的客户 total 显示 0(用 coalesce)。

SQL Editor

Write, run, inspect, repeat.