This content has been marked as final. Show 2 replies
I would write a small PL/SQL for that.
You can use the analytical function to achieve the same result in SQL. Below is the query to achieve the same.
SELECT name, sal, SUM (sal) OVER (ORDER BY sal) running_total