Re: Dynamic date range for each row?



Gert-Jan Strik (sorry@xxxxxxxxxxxxxxxxxxxxx) writes:
According to SQL Server 2005's Books Online, aggregate window functions
only support partitioning by a column. IOW, AFAIK SQL Server does not
(yet?) support PRECEDING or CURRENT ROW as windowing selectors.

Yep. There is a request on ORDER BY for aggregates on Connect:
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=254387

There is also one for RANGE and ROWS
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=254392

There are also a whole more requests for enhancements to the OVER clause,
most of them taken from the ANSI standard. You view a list on:
https://connect.microsoft.com/SQLServer/feedback/SearchResults.aspx?SearchQuery=%22OVER+clause+enhancement+request%22

Would this come in SQL 2008 (it does not seem so), SQL 2008 would be
really hot.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Trying to get Mgmt Studio to work as expected
    ... when it comes from a SQL Server MVP, ... I found that there already is a request for this: ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: How to connect to sql server from dotnet
    ... Request for the permission of type ... signed assemblies or somesuch and not a problem with SQL Server per se. ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: How to connect to sql server from dotnet
    ... Request for the permission of type ... signed assemblies or somesuch and not a problem with SQL Server per se. ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: End SQL Session (SQL Server)
    ... When I give them the special login, ... the special login in order to they have to request it again. ... You could have a job that runs from SQL Server Agent and which runs a cursor ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Determine Disk Block Size ?
    ... "SQL Server limits a single read-ahead request depth to 128 pages on most ... The read ahead is actually dynamic in the size of each read ahead request based somewhat on how fragmented the data is. ... Most of the documentation for 2000 is wrong in that it may state you need multiple files to spawn multiple threads. ... We have done so with a dramatic total disk I/O>> throughput. ...
    (microsoft.public.sqlserver.server)