MySQL Forums
Forum List  »  General

multiply aggregat-function?
Posted by: gnomifon
Date: April 04, 2005 04:10AM

Hello!

I've have this table:

from|to
1|2
2|1
1|3
1|3

I wants to get the product of the to columns:
1*2*1*1|2*1*3*3
2|18
So i can calculate the new ratio 18/2 = 9

But i couldn't found a aggregat function like product or so, how can i make this via sql?

PS: Sorry for my englisch

Regards,
Chris

Options: ReplyQuote


Subject
Written By
Posted
multiply aggregat-function?
April 04, 2005 04:10AM


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.