अच्छा प्रश्न। ऐसा करने का एक विकल्प मैं सोच सकता हूं:
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;
अच्छा प्रश्न। ऐसा करने का एक विकल्प मैं सोच सकता हूं:
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;