I'm having an issue at the moment whereby I've been presented with a database that has its data layed out as follows:
'ID | CALCULATIONS | 2015-06 | 2015-07 | 2015-08 | 2015-09
1 Spend 100 300
1 Forecast 200 200 300 800
2 Spend 300 400 600 300
2 Forecast 200 0 900 200
1 Spend 400 700
I know how to write a 'conventional' query based on calculating a spend between say two columns i.e
ID | CALCULATIONS | Date | Amount
1 Spend 01/06/15 100
But is there a way to perform a query based on the layout of my current (problimatic) database? For example select x From x where date is between y & z ?
Thanks in advance