Use window functions to write simpler, better, more efficient T-SQL queries
Most T-SQL developers recognise the value of window functions for data analysis calculations. But they can do far more, and recent optimisations make them even more powerful. In T-SQL Window Functions, renowned T-SQL expert Itzik Ben-Gan introduces breakthrough techniques for using them to handle many common T-SQL querying tasks with unprecedented elegance and power. Using extensive code examples, he guides you through window aggregate, ranking, distribution, offset, and ordered set functions. You'll find a detailed section on optimisation, plus an extensive collection of business solutions.