Soru şöyle
For example, if we want to sum up the revenue from all previous years till this year, we can use this window function!
Şöyle yaparız
SELECT year, SUM (revenue) OVER ( ROWS BETWEEN UNBOUNDED PRECEEDING AND CURRENT ROW ) AS running_sum FROM revenue_table
Hiç yorum yok:
Yorum Gönder