![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
But to me it appears strange there does not seem to be more business requirement for this. DOes averybody just sum numbers, and never multiply? |
#3
| |||
| |||
|
|
2. product is easy if numbers are positive. e^sum(ln(C)) |
#4
| |||
| |||
|
|
On Tue, 23 Oct 2007 19:41:48 +0200, Frank Ploessel fpl... (AT) d_e (DOT) i_m_s_h_e_a_l_t_h.c_o_m> wrote: But to me it appears strange there does not seem to be more business requirement for this. DOes averybody just sum numbers, and never multiply? 1. yes. sum is common, product is rare 2. product is easy if numbers are positive. e^sum(ln(C)) 3. it would be nice if we could write new aggregate functions somehow |
#5
| |||
| |||
|
|
using the LIST() aggregate and a UDF |
#6
| |||
| |||
|
|
The performance will not be as good as an in-built aggregate function but it may be a way to get some functionality that you need. |
|
On 24 Oct 2007 09:53:37 -0700, "Ivan T. Bowman" ibowman (AT) ianywhere (DOT) NOSPAM.com> wrote: using the LIST() aggregate and a UDF Cool! ...the next time Glenn yells at me about using UDFs, I can say "Ivan said it's ok!" <evil grin Breck -- Breck Carter [Team iAnywhere] RisingRoad SQL Anywhere and MobiLink Professional Services www.risingroad.com The book: http://www.risingroad.com/SQL_Anywhe...ers_Guide.html breck.carter (AT) risingroad (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |