Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Execution of GROUP BY

Author  Topic 

associate01
Starting Member

3 Posts

Posted - 2007-09-18 : 12:16:21
Quick, hopefully simple question--when you have multiple columns in a GROUP BY statement, how does SQL Server execute them?

X002548
Not Just a Number

15586 Posts

Posted - 2007-09-18 : 12:18:37
quote:
Originally posted by associate01

Quick, hopefully simple question--when you have multiple columns in a GROUP BY statement, how does SQL Server execute them?



What does that mean?

It has to incur a sort and combine the values, and perform an scalar activity on the other columns

Funny thing is that the results won't nesseciarily come out sorted



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -