MySQL Forums
Forum List  »  Newbie

Re: Total as last row
Posted by: Peter Brawley
Date: June 20, 2017 08:39AM

> no one else has figured this out either.

?! First, Rollup cannot make Group By "not work". Second, you have complete control over whether and how you display Rollup rows, eg ...

select
  if(a is null and b is null, ..., ... ) ...
  ...etc...
from
  select a,b,c,sum(this),sum(that)...
  from ...
  group by ... with rollup
) sums ;

Options: ReplyQuote


Subject
Written By
Posted
June 18, 2017 07:14PM
June 18, 2017 09:22PM
June 19, 2017 07:25AM
June 19, 2017 10:07AM
June 19, 2017 04:39PM
June 19, 2017 07:24PM
June 20, 2017 06:11AM
Re: Total as last row
June 20, 2017 08:39AM
June 20, 2017 12:11PM
June 20, 2017 12:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.