SELECT profit_id,profit_date,profit, SUM(profit)OVER(ORDER BY profit_date) AS cumulative_profit FROM daily_profits ORDER BY profit_date;