select profit_id,profit_date,profit, sum(profit) over (order by profit_id) as cumulative_profit from daily_profits