|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 11:48 AM
Points: 2,602,
Visits: 1,553
|
|
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: Yesterday @ 7:53 PM
Points: 3,367,
Visits: 1,577
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 1,111,
Visits: 1,233
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, June 13, 2013 6:47 AM
Points: 847,
Visits: 770
|
|
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: Yesterday @ 6:08 AM
Points: 1,216,
Visits: 298
|
|
| Nice question on Grouping Sets.
|
|
|
|