When I run this query:
select
First_Name,
sum(a) a,
sum(b) b,
sum(c) c
from someTable
group by First_Name with rollup
the first column First_Name and the last row (total row) shows a NULL (since it can’t be summed), I want to show a custom string value instead of null. I know I can use isnull or a case here, but I want only the rolled up row to be affected.
Thanks!
1 Answer