SAPHANA学习(22):SQL Function(V)
Posted 渔歌晚唱
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SAPHANA学习(22):SQL Function(V)相关的知识,希望对你有一定的参考价值。
/*
148.VAR
Aggregate function:
VAR( [ ALL | DISTINCT ] <expression> )
Window function:
VAR( <expression> ) <window_specification>
Returns the variance of the given expression as the square of the standard deviation.
方差
VAR_POP(<expression>)
Returns the population variance of an expression.
VAR_SAMP(<expression>)
Returns the sample variance of an expression.
*/
SELECT VAR("Price") FROM "MyProducts"; SELECT VAR_POP("Price") FROM "MyProducts"; SELECT VAR_SAMP("Price") FROM "MyProducts";
以上是关于SAPHANA学习(22):SQL Function(V)的主要内容,如果未能解决你的问题,请参考以下文章