Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A SQL challenge
Message
From
10/04/2014 11:02:57
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01598405
Message ID:
01598426
Views:
51
>SQL 2012 makes it quite easy:

GREAT query...that's a great example of the new ROWS UNBOUNDED PRECEDING to get cumulative sums.

I've used this as a training example, though I also use CROSS APPLY for situations before SQL 2012. I'll wait to see if anyone wants to try an example pre-SQL 2012, and then I'll post some solutions (with yours as one of them).

Thanks, Naomi,
Previous
Reply
Map
View

Click here to load this message in the networking platform