Вопросы к Поиску с Алисой
SELECT column1, column2, SUM(column_to_sum)OVER(ORDERBYcolumn_to_order_by)asCumulativeSumFROMtable_name;