上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 493 下一页
  2013年11月4日
摘要: 开窗函数overselect orderid, custid, val,SUM(val) over() as totalvalue,SUM(val) over(partition by custid) as custtotalvaluefrom Sales.OrderValuesselect orderid, custid, val,100. * val / SUM(val) over() as pctall,100. * val / SUM(val) over(partition by custid) as pctcustfrom Sales.OrderValuesover 子句也支持四种排 阅读全文
posted @ 2013-11-04 21:49 逝者如斯(乎) 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 493 下一页