select emp_no, salary, sum(salary) over(rows between unbounded preceding and current row) running_total from salaries where to_date='9999-01-01'
select emp_no, salary, sum(salary) over(rows between unbounded preceding and current row) running_total from salaries where to_date='9999-01-01'