My understanding of your post is that you don't want
Rate
displayed on the Total row.
You need to use the
ISNULL/IFNULL
function on the
Product
column when choosing to display the
Rate
column - like this
select
IFNULL(Product,'Total') as Product,
sum(case when rmdte = '2015-12-04' then ProdVal else 0 end) `DAY 1`,
. . .
IFNULL(Product, null, Rate),
sum((prodval)*(Rate)) as Amount
. . .
So when
Product
is null you end up with the text 'Total' and nothing in the
Rate
column, otherwise you get the data you need to display in both.