View Single Post
  #8 (permalink)  
Old 01-21-2009, 5:31 AM
cjard's Avatar
cjard cjard is offline
VB.NET Forum All-Mighty
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Apr 2006
Age: 65
Posts: 6,442
Reputation: 807
cjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond repute
Default

In Oracle, you have LAG and LEAD analytic functions which allow access of rows around the current row. If SQLServer has this, it could also have been used rather than joining to rownum=rownum-1
__________________
DW1 DW2 DW3 DW4 DNU PQ
Reply With Quote