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