Craig Freedman's SQL Server Blog

A discussion of query processing, query execution, and query plans in SQL Server.

July, 2007

Posts
  • Craig Freedman's SQL Server Blog

    ROWCOUNT Top

    • 6 Comments
    If you've looked at any insert, update, or delete plans, including those used in some of my posts, you've probably noticed that nearly all such plans include a top operator. For example, the following update statement yields the following plan: CREATE...
  • Craig Freedman's SQL Server Blog

    The UNPIVOT Operator

    • 3 Comments
    The UNPIVOT operator is the opposite of the PIVOT operator. As I explained in my earlier post , the PIVOT operator takes a normalized table and transforms it into a new table where the columns of the new table are derived from the values in the original...
  • Craig Freedman's SQL Server Blog

    PIVOT Query Plans

    • 0 Comments
    In my last post , I gave an overview of the PIVOT operator. In this post, I'm going to take a look at the query plans generated by the PIVOT operator. As we'll see, SQL Server generates a surprisingly simple query plan that is essentially just a fancy...
  • Craig Freedman's SQL Server Blog

    The PIVOT Operator

    • 10 Comments
    In my next few posts, I'm going to look at how SQL Server implements the PIVOT and UNPIVOT operators. Let's begin with the PIVOT operator. The PIVOT operator takes a normalized table and transforms it into a new table where the columns of the new table...
Page 1 of 1 (4 items)