s******y 发帖数: 68 | 1 like
Date Price
--------------------
1-may 15
2-may 17
3-may 18
4-may 19
...........
How to get the product of column PRICE by SQL? that is, (15*17*18*19.
.)
thanks | t*****g 发帖数: 1275 | 2 加个column显示log(price),sum一下再exp出来.
不是很准确而且要handle一些特别数据.最好用cursor算一下.
19.
【在 s******y 的大作中提到】 : like : Date Price : -------------------- : 1-may 15 : 2-may 17 : 3-may 18 : 4-may 19 : ........... : How to get the product of column PRICE by SQL? that is, (15*17*18*19. : .)
| s******y 发帖数: 68 | 3 对呀, roundoff error 大了点. 呵呵
【在 t*****g 的大作中提到】 : 加个column显示log(price),sum一下再exp出来. : 不是很准确而且要handle一些特别数据.最好用cursor算一下. : : 19.
|
|