|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 1:57 PM
Points: 2,575,
Visits: 1,533
|
|
sathishmcc (8/30/2011) Hi, this "grouping sets" available in sql server 2005 i tried it shows error...is it in advanced version.
This feature is not available in SQL Server 2005. It works with SQL Server 2008 and newer.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
Tom.Thomson (8/30/2011)
SanDroid (8/30/2011)
Thank you Tom. It was your reply to my comments that inspired me to write this question. So I would call it inspiration before plagerism.  This question is based on one posted before. http://www.sqlservercentral.com/questions/T-SQL/64301/The example scripts, and the answer, are not the same.  The important difference, I think, is that in your version the answer is right while in the previous version the answer was wrong.  Tom I seriously apreciate that. I respect your opinion always.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
sathishmcc (8/30/2011) Hi, this "grouping sets" available in sql server 2005 i tried it shows error...is it in advanced version.
That is correct. I began the question with SQL Server 2008 introduces GROUPING SETS so that thier would not be any confusion about the server version that supports it.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:31 AM
Points: 3,367,
Visits: 1,563
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 11:29 PM
Points: 1,083,
Visits: 1,154
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Saturday, March 16, 2013 9:53 AM
Points: 847,
Visits: 768
|
|
Interesting! according to msdn "GROUPING SETS can generate a result equivalent to that generated by a simple GROUP BY, ROLLUP or CUBE operation."
Thank you, Iulian
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 11:44 PM
Points: 1,216,
Visits: 297
|
|
| Nice question on Grouping Sets.
|
|
|
|