|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 25, 2011 2:41 AM
Points: 145,
Visits: 99
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Friday, March 15, 2013 2:43 PM
Points: 3,924,
Visits: 1,554
|
|
How come Dec 3, 2009 question appeared on sep 14th?
SQL DBA.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
|
|
I have parse the query in the query analyzer and got the following error:
Msg 102, Level 15, State 1, Line 3 Incorrect syntax near 'SETS'.
--------------------------------------------------- "Thare are only 10 types of people in the world: Those who understand binary, and those who don't."
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 8:31 AM
Points: 3,129,
Visits: 4,312
|
|
"Grouping Sets ()" is a new addition to T-SQL in 2008. refer SQL2008 BOL page: ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.en/s10de_0evalplan/html/09f0096e-ab95-4be0-8c01-f98753255747.htm
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 25, 2011 2:41 AM
Points: 145,
Visits: 99
|
|
SanjayAttray (9/14/2009) How come Dec 3, 2009 question appeared on sep 14th?
I am surprised too!
Bhavesh .NET and SQL Server Blog
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 12:25 PM
Points: 525,
Visits: 215
|
|
That's a question from the future! Are we sure on Dec 3rd the answer will be the same?  Kind of like those DOTS (Ice cream of the future!)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 3:25 AM
Points: 1,371,
Visits: 2,302
|
|
Don't know how..when I opened QOD page today it shows that "My answer is correct" and I have been given 2 points. Infact I had not even seen the question...
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 1:41 AM
Points: 2,477,
Visits: 2,140
|
|
San-847017 (12/2/2009) Don't know how..when I opened QOD page today it shows that "My answer is correct" and I have been given 2 points. In fact I had not even seen the question...
Lucky you! I got wrong when the page opened - not saying however if I would have got it right if I had seen the question though! - Well yes of course I would have done
------------------------------- Posting Data Etiquette - Jeff Moden Smart way to ask a question
There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan I would never join a club that would allow me as a member - Groucho Marx
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 7:52 AM
Points: 1,715,
Visits: 61
|
|
After moving the code to my SQL 2008 and rewriting it to work with an existing table I got some results. There were lines with the first field having a value and the second NULL. Then I got a set of lines with the first field NULL and the second with values. It was almost like running two statements, one grouping by the first field and the other grouping by the second field, then putting all the results together.
What was a bummer was that I didn't need to go to all the trouble as when I went to answer the question it automatically assigned the correct answer. Why can't it do that on those that I would get wrong?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 1:47 PM
Points: 2,118,
Visits: 2,213
|
|
Stuart Davies (12/3/2009)
San-847017 (12/2/2009) Don't know how..when I opened QOD page today it shows that "My answer is correct" and I have been given 2 points. In fact I had not even seen the question...Lucky you! I got wrong when the page opened - not saying however if I would have got it right if I had seen the question though! - Well yes of course I would have done
I lucked out too and got it right, though I can't recall whether I answered it back on 9/14. Pleasant surprise - and I'll take it, given the previous times when I thought I was "robbed" out of a point or two. 
webrunner
------------------- "The chemistry must be respected." - Walter White
"A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?'" Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
|
|
|
|