总结下sqlserver group by 的用法
2017-02-05
21
今天用实例总结一下group by的用法。归纳一下:group by:ALL ,Cube,RollUP,Compute,Compute by创建数据脚本Create Table SalesInfo(Ctiy nvarchar(50),OrderDate datetime,OrderID int)insert into SalesInfoselect N"北京","2014-06-09",1001union allselect N"北京","2014-08-...