THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

Michael Coles: Sergeant SQL

SQL Server development, news and information from the front lines

Please Vote: Windowing Enhancements in SQL Server

Back in January 2007, SQL guru Itzik Ben-Gan posted a series of MS Connect enhancement requests concerning windowing function enhancements.  Those who have used the ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE() functions on SQL 2005 and 2008, you already know how useful they are.  They simplify code and can improve performance considerably over the alternatives, which usually include self-joins, temp tables and/or cursors in various combinations.

Well, the windowing functionality that you've seen in SQL 2005 and 2008 is just the tip of the iceberg.  The ISO SQL standard actually defines several additional options for these functions that SQL Server doesn't yet support. These additional options allow you to do some pretty amazing calculations. The ROWS and RANGE window subclauses that the standard defines allows you to perform "sliding window" calculations; the ORDER BY clause for aggregate functions which simplifies complex running sum (and other) calculations.

As a SQL developer or DBA, these enhancements will simplify your life.  But don't take my word for it - read Itzik's white paper at http://www.insidetsql.com/OVER_Clause_and_Ordered_Calculations.doc.  Then let Microsoft know you want these enhancements in SQL Server by voting on Itzik's enhancement requests at the following links:

 
 
 
 
 
 
 
 
Read Itzik's article, vote on the Connect items, and spread the word!

Comments

 

Twitter Trackbacks for Michael Coles: Sergeant SQL : Please Vote: Windowing Enhancements in SQL Server [sqlblog.com] on Topsy.com said:

November 19, 2009 11:48 PM
 

uberVU - social comments said:

This post was mentioned on Twitter by Sergeant_SQL: Talk back -- vote on new SQL functions: Let's get 200 votes by Dec 1st! http://tinyurl.com/ycxge5s

November 20, 2009 12:36 AM
 

Aaron Bertrand said:

SSMS needs to support today's (and tomorrow's) number of cores Apparently when you try to get to the

November 20, 2009 4:08 PM
 

Analytic Functions – II « Systems Engineering and RDBMS said:

December 21, 2009 8:16 PM
New Comments to this post are disabled

This Blog

Syndication

News

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement