现在是由这样一个表结构:
id roomno year month cost
1 2001 2012 1 500
2 2002 2012 1 600
3 2001 2012 2 300
4 2002 2012 2 700
5 2001 2013 1 650
6 2002 2013 1 750
7 2001 2013 2 800
8 2002 2013 2 400
现在想查询出这种效果:
roomno year month cost roomno year month cost
2001 2012 1 500 2001 2012 2 300
2002 2012 1 600 2002 2012 2 700
2001 2013 1 650 2001 2013 2 800