码迷,mamicode.com
首页 > 数据库 > 详细

SAPHANA学习(22):SQL Function(V)

时间:2020-11-07 17:11:23      阅读:26      评论:0      收藏:0      [点我收藏+]

标签:ESS   sele   bsp   res   stand   via   color   reg   col   

/*

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)

标签:ESS   sele   bsp   res   stand   via   color   reg   col   

原文地址:https://www.cnblogs.com/tangToms/p/13939793.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!