﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Gregory Larsen / Article Discussions / Article Discussions by Author  / Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 05:06:40 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>Good article and clear explanation. Had do refactor the INSERT statements as my organisation uses SQL 2005.</description><pubDate>Thu, 23 Aug 2012 01:57:55 GMT</pubDate><dc:creator>Robin Sasson</dc:creator></item><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>test</description><pubDate>Wed, 22 Aug 2012 14:18:28 GMT</pubDate><dc:creator>JGBW12</dc:creator></item><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>Nice article!  I had never really thought much about using those powerful options with GROUP BY, but now I will use them more.--Bill</description><pubDate>Wed, 22 Aug 2012 09:23:55 GMT</pubDate><dc:creator>brichardson 56244</dc:creator></item><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>Thanks for this, it's a good clear summary of these features.Are there any performance gains to be had by switching to use these features over unioning a set of SQL statements together? If so I have a few reports that might benefit from rewriting to use them.   Barney</description><pubDate>Wed, 22 Aug 2012 01:41:25 GMT</pubDate><dc:creator>BarneyL</dc:creator></item><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>Good article, but I've been surprised with the use of COALESCE() for getting the 'Grand Total' in Listing 3. I think it's better to use the GROUPING() function to know if we are dealing with a subtotal row, and then replace the NULL with the correct label. If you use COALESCE() and there is some NULL value in the column CheckFor, you'll get a mistaken label.</description><pubDate>Wed, 22 Aug 2012 00:39:08 GMT</pubDate><dc:creator>dbuendiab</dc:creator></item><item><title>RE: Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>[quote][b]Greg Larsen (1/10/2012)[/b][hr]Comments posted to this topic are about the item [B]&amp;lt;A HREF="/articles/Stairway+Series/87629/"&amp;gt;Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause&amp;lt;/A&amp;gt;[/B][/quote]It is an amazing article on the Rollup, Cube and Grouping SEt operators. Excelling explanation and very good presentation with very simple example.</description><pubDate>Tue, 21 Aug 2012 23:39:47 GMT</pubDate><dc:creator>subramanian.rajan</dc:creator></item><item><title>Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause</title><link>http://www.sqlservercentral.com/Forums/Topic1233364-90-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Stairway+Series/87629/"&gt;Stairway to T-SQL DML Level 8: Using the ROLLUP, CUBE and GROUPING SET operator in a GROUP BY Clause&lt;/A&gt;[/B]</description><pubDate>Tue, 10 Jan 2012 09:55:46 GMT</pubDate><dc:creator>Greg Larsen</dc:creator></item></channel></rss>