好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

SqlServer开窗函数Over()的使用实例详解

利用over(),将统计信息计算出来,然后直接筛选结果集

declare @t table(
ProductID int,
ProductName varchar(20),
ProductType varchar(20),
Price int)
insert @t
select 1,'name1','P1',3 union all
select 2,'name2','P1',5 union all
select 3,'name3','P2',4 union all
select 4,'name4','P2',4 

查看更多关于SqlServer开窗函数Over()的使用实例详解的详细内容...

  阅读:57次