Godt spørgsmål. En mulighed, jeg kan komme i tanke om, er at gøre dette:
select COALESCE(a, -1) AS a, COALESCE(b, -1) AS b, sum(c)
from <table>
group by COALESCE(a, -1), COALESCE(b, -1) with rollup;
Godt spørgsmål. En mulighed, jeg kan komme i tanke om, er at gøre dette:
select COALESCE(a, -1) AS a, COALESCE(b, -1) AS b, sum(c)
from <table>
group by COALESCE(a, -1), COALESCE(b, -1) with rollup;