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.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Mark the total row of a GROUPING SETS query with a subquery that calls GROUPING().
Employees per team plus a total row; the column tot is (SELECT grouping(team_id)). Totals last.