Apache Tajo - first_value(值)



現在讓我們使用以下查詢檢查first_value(value)函式。

查詢

sampledb> select first_value(mark) over (order by name) as firstvalue from mytable; 

結果

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

firstvalue 
------------------------------- 
90 
90 
90 
90 
90 
90 
90 
90 
90 
90 

使用first_value()函式,將替換 Mark 列中的所有 90 初始值。

apache_tajo_aggregate_and_window_functions.htm
廣告
© . All rights reserved.