Common Table Expressions and Windowing Functions
SQL Server 2012 continues support for the extremely useful common table expression (CTE), first introduced in SQL Server 2005. CTEs can simplify your queries to make them more readable and maintainable. SQL Server also supports self-referential CTEs, which make for very powerful recursive queries.
Unable to display preview. Download preview PDF.