The same query is supported from 2012 onwards. In older versions there are several approaches. Refer this http://www.sqlperformance.com/2012/07/t-sql-queries/running-totals
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- SET versus SELECT when assigning variables?
- How to print VARCHAR(MAX) using Print Statement?
- Concatenate values based on ID
- Splitting delimited values in a SQL column into multiple rows
- I dont know sql syntax for my table [closed]
- Insert an image in a column of a table that already has 5 columns
- Get top 1 row of each group
- CROSS JOIN vs INNER JOIN in SQL
- Referring to a Column Alias in a WHERE Clause
- Convert Month Number to Month Name Function in SQL
- How to avoid the “divide by zero” error in SQL?
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Generate a resultset of incrementing dates in TSQL
- Real life example, when to use OUTER / CROSS APPLY in SQL
- Getting result of dynamic SQL into a variable for sql-server
- How to get difference between two rows for a column field?
- Better techniques for trimming leading zeros in SQL Server?
- How to update Identity Column in SQL Server?
- Common Table Expression, why semicolon?
- What’s the best way to select the minimum value from several columns?
- T-SQL split string based on delimiter
- varbinary to string on SQL Server
- SQL Server 2005 ROW_NUMBER() without ORDER BY
- Can an INNER JOIN offer better performance than EXISTS
- Stored procedure that exports data into csv files only exports to one file
- How do I prevent a database trigger from recursing?
- How to combine results of two queries into a single dataset
- Executing SQL Server Agent Job from a stored procedure and returning job result
- SQL take just the numeric values from a varchar