在 db 中有这种格式的数据
---------------------------------------------
count | margin | date | week | day |
---------------------------------------------
230 | 140 | 2013-01-01 | 0 | Monday |
----------------------------------------------
500 | 340 | 2013-01-02 | 0 | Tuesday |
----------------------------------------------
200 | 240 | 2013-01-08 | 1 | Monday |
----------------------------------------------
要求输出是
-----------------------------------------------------------
| week | monday | tuesday | wednesday | .........
-----------------------------------------------------------
| 0 | 230:140 | 500:340 |
-----------------------------------------------------------
| 1 | 200:240 |
-----------------------------------------------------------
任何帮助表示赞赏