我在 group by expression 中使用 rollup() 函数来显示结果查询,但我的输出是这样的:
Year Month AmountOfMoney
==== ===== =============
1998 March 130.00
1998 April 450.00
1988 - 580.00
1999 January 120.00
1999 April 550.00
1999 - 670.00
- - 1250.00
如何使其按总数排序,然后是年,然后是(年,月)
Year Month AmountOfMoney
==== ===== =============
- - 1250.00
1988 - 580.00
1999 - 670.00
1998 March 130.00
1998 April 450.00
1999 January 120.00
1999 April 550.00