Apache Tajo - AVG(exp)



現在檢查一下 Avg(exp) 函式,查詢如下。

查詢

sampledb> select avg(mark) as avg from mytable; 

結果

上述查詢將生成以下結果。

avg 
------------------------------- 
75.5

上述查詢返回 mytable 中分數的平均值。

apache_tajo_aggregate_and_window_functions.htm
廣告
© . All rights reserved.