按月查询
byzcm 2004-12-20 03:12:35 我有个表
DailyReport(OrderID,OrderPrice,OrderDate)
OrderID:订单编号;OrderPrice:订单金额;OrderDate:订单日期
1001 100 2004-01-01
1002 300 2004-01-02
1003 200 2004-01-03
1004 600 2004-01-04
1005 300 2004-02-01
1006 500 2004-02-02
1007 200 2004-02-04
1008 600 2004-02-09
查询按月订单金额最大的3条记录
想得到的结果
OrderID OrderPrice OrderDate
1004 600 2004-01-04
1002 300 2004-01-02
1003 200 2004-01-03
1008 600 2004-02-09
1006 500 2004-02-02
1005 300 2004-02-01