|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 03, 2013 6:06 AM
Points: 388,
Visits: 296
|
|
palotaiarpad (11/9/2011)
The space used to store nullable fields is the only bottleneck. I missed it. 
Same here .. nice question! It's nice to know how SQL Server uses his space :)
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 4:06 PM
Points: 1,219,
Visits: 13,509
|
|
fantastic question, hugo!! thanks!!!!
I was wrong, because interpretation of the translation and also the rush to reply!
rfr.ferrari DBA - SQL Server 2008 MCITP | MCTS
remember is live or suffer twice!
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 8:53 AM
Points: 2,499,
Visits: 2,200
|
|
lucydickinson (11/9/2011)
Really enjoyed this question .. pity I got it wrong but I have definitly learnt something!:  seconded - thanks
------------------------------- 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
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 12:10 PM
Points: 7,185,
Visits: 7,285
|
|
Good question.
The correct answer rate is still only 9%, which I find surprising. Mostly a very good explanation, too, but I have one small cavil:
There is an index which supports the foreign key constraint, and indeed you are not permitted to create the foreign key constraint unless that index already exists when you try to create the foreign key; so it's wrong to say there is no such index. However, that index is not part of the table being discussed, but of the referenced table, and it's reasonable to assume that the question is about space for the table being discussed so that space for the index on the referenced table doesn't count, and thus this affects only the explanation and not the answer.
Tom Is minic a gheibheann béal oscailte dorn dúnta. Is minig a cheapas beul fosgailte dòrn dùinte.
http://es.linkedin.com/in/tomthomsonsoftware
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:45 PM
Points: 5,297,
Visits: 7,240
|
|
L' Eomot Inversé (11/9/2011) Good question.
The correct answer rate is still only 9%, which I find surprising. Thanks! I must say that the low rate of correct answers surprises me. I intended this question to be a relatively easy first question in a series (hence the "1" in the title). I have already submitted the second one, and I won't change that - but I'll have to rethink the difficulty level of the remaining planned questions (that I did not submit yet).
Mostly a very good explanation, too, but I have one small cavil:
There is an index which supports the foreign key constraint, and indeed you are not permitted to create the foreign key constraint unless that index already exists when you try to create the foreign key; so it's wrong to say there is no such index. However, that index is not part of the table being discussed, but of the referenced table, and it's reasonable to assume that the question is about space for the table being discussed so that space for the index on the referenced table doesn't count, and thus this affects only the explanation and not the answer. I think your remark about the explanation is a bit far-fetched - but I'll admit that one could interpret the explanation that way. Luckily, the text of my question explicitly includes "... used by the table are true". So it is not only, as you say, reasonable to assume that the question is about space for the table being discussed - it is explicitly stated!
Hugo Kornelis, SQL Server MVP Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Tuesday, June 04, 2013 8:50 AM
Points: 862,
Visits: 1,440
|
|
Wow, very elaborated question. It made my brain hurt for a second.
I've got 3/4 options right.
I only missed one which should have been basic knowledge to me:
"The amount of space used DOES depend on the fragmentation of the index that supports the PRIMARY KEY constraint."
Thank you for the question.
Best regards,
Best regards,
Andre Guerreiro Neto
Database Analyst http://www.softplan.com.br MCITPx1/MCTSx2
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 10:48 AM
Points: 10,990,
Visits: 10,578
|
|
Hugo Kornelis (11/9/2011) I must say that the low rate of correct answers surprises me. The question is reasonably difficult, Hugo. Multi-choice questions also tend to lower the success rate, historically speaking.
Luckily, the text of my question explicitly includes "... used by the table are true". So it is not only, as you say, reasonable to assume that the question is about space for the table being discussed - it is explicitly stated! FWIW I also assumed the bit about the 'FK index' related to the referenced table, but the question was clear enough that that point did not lead me astray.
Last thing: I didn't see that this question was by you, so I approached it with some element of the usual 'I wonder what the author intended / knew' and selected the wrong answer for the NULL storage bit as a result. I blame an 'expectation hangover' after yesterday's question
Paul White SQL Server MVP SQLblog.com @SQL_Kiwi
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Today @ 4:03 AM
Points: 505,
Visits: 589
|
|
Sad i know but i was actually quite pleased to have got the right answer on a multi choice with such a low percentage of right answers. I had to really consider the options - really good question.
D
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 5:11 AM
Points: 1,168,
Visits: 1,470
|
|
codebyo (11/9/2011) Wow, very elaborated question. It made my brain hurt for a second.
I've got 3/4 options right.
I only missed one which should have been basic knowledge to me:
"The amount of space used DOES depend on the fragmentation of the index that supports the PRIMARY KEY constraint."
Same here, including the part wrong. Forgot that primary key generates an index implicitly. Doh. Partial credit? 
Reminds me of my college days, when students would beg for "partial credit". One prof in the dept. would rant loudly, "Partial Credit! Partial Credit! Would you go to a doctor that always got partial credit?"
Please don't go. The drones need you. They look up to you.
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Today @ 11:49 AM
Points: 662,
Visits: 699
|
|
The only thing that tripped me up was:
The amount of space used DOES depend on the fragmentation of the index that supports the FOREIGN KEY constraint.
I took this to imply that such an index exists. "A-ha! There is no such an index!" is a bit sneaky but fair, I suppose. You did provide the entire table creation script so I can't complain.
ron
----- a haiku...
NULL is not zero NULL is not an empty string NULL is the unknown
|
|
|
|