May I ask for a little help with the following please ?
My query results are returned like ...
cDate posId val
14/01/2011 0 200
14/01/2011 1 199
…
14/01/2011 8 198
14/01/2011 9 197
06/03/2015 0 264
06/03/2015 1 264
…
06/03/2015 8 261
06/03/2015 9 264
Is it possible to 'reformat' the output like this ...
Position 14/01/2011 06/03/2015
0 200 264
1 199 264
2 195 264
3 192 264
4 190 264
5 195 263
6 197 261
7 199 260
8 198 261
9 197 264
I'd like to read through these rows in php and put together a csv file that I can download.
I think this Crosstabs section at artfulsoftware.com may contain the answer for me, but I'm just not 'getting it' right now.
May I ask you for a pointer or two please ? Am I heading in the right direction with Pivot Tables ?
Thank you.