I don't have SQLServer to try that. But did an initial search online. It looks like such queries with GROUP BY WITH ROLLUP can be replaced by GROUP BY and UNION. Can you try that?
-Jianxia
I don't have SQLServer to try that. But did an initial search online. It looks like such queries with GROUP BY WITH ROLLUP can be replaced by GROUP BY and UNION. Can you try that?
-Jianxia