MySQL Forums
Forum List  »  Newbie

Re: sum, group by, union
Posted by: Felix Geerinckx
Date: April 07, 2005 01:34PM

Chris Stubben wrote:

> That should be easy. Just multiply the sum by the
> number of rows (Count or *). If the count is 1
> the sum doesn't change. I don't think you need
> subqueries in this case.

Did you actually test this on actual data?

--
felix

Options: ReplyQuote


Subject
Written By
Posted
April 06, 2005 12:47AM
April 06, 2005 11:02AM
April 07, 2005 05:45AM
April 07, 2005 10:25AM
Re: sum, group by, union
April 07, 2005 01:34PM
April 07, 2005 03:40PM


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.