What are the maximum number of Columns in GROUP BY clause in SQL Server?

Posted on : 16-04-2012 | By : Devi Prasad | In : SQL Server Basics

Share:

0


What are the maximum number of Columns in GROUP BY clause in SQL Server?
The maximum number of Columns in GROUP BY clause are limited only by number of bytes.

Below link gives details regarding maximum bytes per Group By Clause.
What are the maximum Bytes per GROUP BY in SQL Server?

What are the maximum number of Columns or expressions in GROUP BY WITH CUBE in SQL Server?
The maximum number of Columns or expressions in GROUP BY WITH CUBE is 10 .

What are the maximum number of Columns or expressions in GROUP BY WITH ROLLUP in SQL Server?
The maximum number of Columns or expressions in GROUP BY WITH ROLLUP is 10 .

Max Capacity For SQL Server 2012 SQL Server 2008 R2 SQL Server 2008 SQL Server 2005
maximum number of Columns in GROUP BY clause in SQL Server Limited only by number of bytes. Limited only by number of bytes. Limited only by number of bytes. Limited only by number of bytes.
Maximum number of Columns or expressions in GROUP BY WITH CUBE 10 10 10 10
Maximum number of Columns or expressions in GROUP BY WITH ROLLUP 10 10 10 10

http://msdn.microsoft.com/en-us/library/ms143432.aspx

(Visited 29 times, 1 visits today)



References : Devi Prasad (sqlserverlearner.com)

Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.


Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.




Write a comment



Tags: , , , , , , , , , , , , , , , , , , ,