Calculating Values within a Rolling Window in Transact SQL
Posted
on SQL Server Central
See other posts from SQL Server Central
Published on Fri, 01 Nov 2013 06:00:00 UT
Indexed on
2013/11/02
22:08 UTC
Read the original article
Hit count: 166
Filed under:
Before the SQL Window functions were implemented, it was tricky to calculate rolling totals or moving averages efficiently in SQL Server. There are now a number of techniques, but which has the best performance? Dwain Camps gets out the metaphorical stopwatch.
Get your SQL Server database under version control now! Version control is standard for applications, but databases haven’t caught up. So how can you bring database development up to speed? Why should you start? Find out… |
© SQL Server Central or respective owner