My table looks like this (I work at an energy company)
dte hub Peak Offpeak
07-04-2017 SoCo 36.19 18.23
07-04-2017 SwapBID 0.5 0.25
07-05-2017 SoCo 32.12 21.72
07-05-2017 SwapBID 0.25 0.25
07-06-2017 SoCo 33.87 20.34
07-06-2017 SwapBID 0.5 0.5
I want to be able to pull the data from this table using a select query and make it so that the two hubs' peak and offpeak prices are added together for the same days. For example, on the day 07/04/2017 i want it to show that the Peak was 36.69 and the Offpeak was 18.48. I would like to do this for every day in the table. How do I code this?