摘要: 取分组后的按时间排序的前两条数据Select 字段1,...,字段n From (Select *,(Select Count(*) From 订单表 as a Where a.客户ID = 订单表.客户ID And a.订单日期> =订单表.订单日期) as 序号 From 订单表 ) as b Where 序号 <=2 阅读全文
posted @ 2011-07-11 17:10 gds111789 阅读(1135) 评论(0) 推荐(0) 编辑