Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A SQL challenge
Message
De
10/04/2014 11:02:57
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01598405
Message ID:
01598426
Vues:
52
>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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform