drop view public.runbal;

create view public.runbal 
as 
select
	trxdate
	, trxdescription
	, trxamount
	, to_char(trxdate, 'day') day_of_week
	, sum(trxamount) over(
			order by
				trxdate
				, trxamount desc rows unbounded preceding
			) runningbal
from
	public.budgetdetails

 