|
|
|
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)
Nice and straightforward. I have a strange feeling that I've seen exactly those two queries before somewhere.  But maybe I won't cry "plagiarism"  . Or  maybe I should? 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.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
stewartc-708166 (8/30/2011) Nice simple question. Having recently embarked on a project which requires the use of grouping sets really helped This helped me with some recent reporting projects also.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 11:53 AM
Points: 2,672,
Visits: 2,416
|
|
| I did a little reading, got the question right, but the reading I did makes me want to read a lot more about commands I have not used in the past that I think I will find quite useful. Thanks
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
Daniel Bowlin (8/30/2011) I did a little reading, got the question right, but the reading I did makes me want to read a lot more about commands I have not used in the past that I think I will find quite useful. Thanks You are very welcome Daniel. Thank you for the response!
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 9:44 AM
Points: 3,451,
Visits: 2,525
|
|
| Thank you, Dee! It compelled me to re-read GROUPING SETS.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
Revenant (8/30/2011) Thank you, Dee! It compelled me to re-read GROUPING SETS. Thank you Revenant. It is a great new feature for grouping and set based query.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Today @ 8:14 AM
Points: 692,
Visits: 1,021
|
|
| Thanks for this question. As a relative newbie I think I will find this useful in future.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
tim.kay (8/30/2011) Thanks for this question. As a relative newbie I think I will find this useful in future. It can really cut down on the number of times you use UNION ALL.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 9:40 AM
Points: 7,081,
Visits: 7,133
|
|
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 Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, April 05, 2013 2:32 AM
Points: 303,
Visits: 163
|
|
| Hi, this "grouping sets" available in sql server 2005 i tried it shows error...is it in advanced version.
|
|
|
|