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