首页 > 电脑
更新时间2018-03-31 00:45:46
select customerid,count(*)as 'n' from Orders
where 'n'=(select max('n') from Orders) and YEAR(OrderDate)=2009
group by CustomerID
我这样写检索出了87行,怎么办呀?小白求教!!
按照年份筛选,通过用户id分组,然后使用sum进行统计并且倒序排序即可
相关标签:大神
上一篇:javascript怎么导入excel
下一篇:bim中修改结构框架体系的工作栏如何关闭