Sign In
Craig Freedman's SQL Server Blog
A discussion of query processing, query execution, and query plans in SQL Server.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Aggregation
Common Table Expressions
Conversions
Hints
I/O
Isolation Levels
Joins
Parallelism
Partitioned Tables
Pivot and Unpivot
Ranking Functions
Rollup and Cube
Scans and Seeks
Subqueries
Top
Updates
Archive
Archives
January 2010
(1)
July 2009
(1)
June 2009
(1)
April 2009
(1)
March 2009
(2)
February 2009
(1)
October 2008
(2)
September 2008
(1)
August 2008
(2)
July 2008
(1)
June 2008
(2)
May 2008
(2)
April 2008
(1)
March 2008
(2)
February 2008
(1)
January 2008
(2)
November 2007
(1)
October 2007
(3)
September 2007
(3)
August 2007
(3)
July 2007
(4)
June 2007
(2)
May 2007
(5)
April 2007
(2)
December 2006
(1)
November 2006
(4)
October 2006
(4)
September 2006
(4)
August 2006
(5)
July 2006
(4)
June 2006
(6)
September, 2006
MSDN Blogs
>
Craig Freedman's SQL Server Blog
>
September, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Craig Freedman's SQL Server Blog
Scalar Subqueries
Posted
over 6 years ago
by
Craig Freedman
1
Comments
A scalar subquery is a subquery that returns a single row. Some scalar subqueries are obvious. For instance: create table T1 ( a int , b int ) create table T2 ( a int , b int ) select * from T1 where T1 . a > ( select max ( T2 . a...
Craig Freedman's SQL Server Blog
Hash Aggregate
Posted
over 6 years ago
by
Craig Freedman
6
Comments
In my prior two posts, I wrote about the stream aggregate operator. Stream aggregate is great for scalar aggregates and for aggregations where we have an index to provide a sort order on the group by column(s) or where we need to sort anyhow (e.g., due...
Craig Freedman's SQL Server Blog
Stream Aggregate
Posted
over 6 years ago
by
Craig Freedman
6
Comments
There are two physical operators that SQL Server uses to compute general purpose aggregates where we have a GROUP BY clause. One of these operators is stream aggregate which as we saw last week is used for scalar aggregates . The other operator is hash...
Craig Freedman's SQL Server Blog
Aggregation
Posted
over 6 years ago
by
Craig Freedman
9
Comments
Aggregation refers to the collapse of a larger set of rows into a smaller set of rows. Typical aggregate functions are COUNT, MIN, MAX, SUM, and AVG. SQL Server also supports other aggregates such as STDEV and VAR. I’m going to break this topic down...
Page 1 of 1 (4 items)