I have gotten to this result from my table for two underliers TQQQ and SQQQ
select TradeDate, Stock_Short, LastPrice*Volume as USDVolume from aktien
where Stock_Short ="TQQQ" OR Stock_Short = "SQQQ" order by TradeDate desc
which gives this result
looks like this
2018-10-30 SQQQ 1131165621.6
2018-10-30 TQQQ 1100960774.12
2018-10-29 SQQQ 996285358.9
2018-10-29 TQQQ 1263999527.63
2018-10-26 SQQQ 831584079.95
2018-10-26 TQQQ 1496815364.75
2018-10-25 SQQQ 608926709.68
Now i want to subtract TQQQ-SQQQ for each calendar day in the table.
2018-10-30 -30,204,847
2018-10-29 etc ...
How can i do this?
