﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / I have a question about GROUPING SETS and the () element. / 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>Thu, 23 May 2013 06:40:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: I have a question about GROUPING SETS and the () element.</title><link>http://www.sqlservercentral.com/Forums/Topic1409297-392-1.aspx</link><description>Empty set add a grand total.[url]http://www.sqlsnippets.com/en/topic-13122.html[/url]</description><pubDate>Sun, 20 Jan 2013 12:29:17 GMT</pubDate><dc:creator>e4d4</dc:creator></item><item><title>I have a question about GROUPING SETS and the () element.</title><link>http://www.sqlservercentral.com/Forums/Topic1409297-392-1.aspx</link><description>What does the () signify with grouping sets of multiple elements? An example on Microsoft.com, (http://technet.microsoft.com/en-us/library/bb522495(v=sql.105).aspx), read the following T-SQL code:GROUP BY GROUPING SETS(    (T.[Group], T.CountryRegionCode)    ,(S.Name)    ,(H.SalesPersonID,T.[Group])    ,(H.SalesPersonID)    ,())What does the last open parenthesis and its closing parenthesis "()" mean?I think has the effect of a UNION of GROUP BY () nothing.  But I don't know why you would want the results of a GROUP BY () that doesn't have any value.</description><pubDate>Sun, 20 Jan 2013 12:03:04 GMT</pubDate><dc:creator>Golfer22</dc:creator></item></channel></rss>