Craig Freedman's SQL Server Blog

A discussion of query processing, query execution, and query plans in SQL Server.
Posts
  • Craig Freedman's SQL Server Blog

    Recursive CTEs

    • 1 Comments
    One of the most important uses of CTEs is to write recursive queries. In fact, CTEs provide the only means to write recursive queries. As I noted last week , there are several excellent CTE examples, including recursive CTE examples, in Books Online ...
  • Craig Freedman's SQL Server Blog

    CTEs (Common Table Expressions)

    • 3 Comments
    CTEs or common table expressions, which are new in SQL Server 2005, provide an easy way to break a complex SQL statement down into smaller more manageable queries. CTEs are is some ways very much like views. Unlike a view which can be created once and...
  • Craig Freedman's SQL Server Blog

    GROUPING SETS in SQL Server 2008

    • 10 Comments
    In my last two posts, I gave examples of aggregation WITH ROLLUP and CUBE . SQL Server 2008 continues to support this syntax, but also introduces new more powerful ANSI SQL 2006 compliant syntax. In this post, I'll give an overview of the changes. ...
Page 1 of 1 (3 items)