db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

GROUPING() inside a subquery

Mark the total row of a GROUPING SETS query with a subquery that calls GROUPING().

task

Employees per team plus a total row; the column tot is (SELECT grouping(team_id)). Totals last.

hints