October 15, 2012 at 6:25 am
Nice question.:-) thanks!!
October 15, 2012 at 8:54 am
My only thought was.... where is the index for the statistics?
I kept trying to figure out a way that would have allowed for the statistics, but couldn't come up with one.
Yay +1 for me.
October 15, 2012 at 10:13 am
L' Eomot Inversé (10/14/2012)
I wonder how many people will fail to notice that although you've got everything ready to create the index you haven't actually done so, so the view is not indexed and can't have statistics.
Exactly why I got it wrong. I didn't spend the time to read through the question carefully.
October 15, 2012 at 1:58 pm
This questions shows once more the variety of things you can do with MSSQL.
Great!
October 16, 2012 at 6:05 am
Hugo Kornelis (10/15/2012)
At first sight, I thought this was a question to check whether indexed views can have their own statistics. I did not know that, so I set out to research that, and I thought this was a great question.
I would have preferred a question worded that way too. It checks the same knowledge and offers the same learning opportunity.
Than, I (luckily) doublechecked the question - and found that it is actually a question that tests my ability to read carefully, and to not fall victim to suggested information.
Same here - except I didn't spot the trap. People who know me may not be surprised to hear that I know manual and auto-statistics can be created on views (and why they are only used when the NOEXPAND hint is used), but still got this question 'wrong'. The same thing happened with the previous instalment in this series - I knew the correct SET options, but missed spotting the WITH SCHEMABINDING omission.
Ron has already submitted a lot of questions, and I have never seen him intentionally try to trick people, so I am sure that it was not his intention to make this a trick question either.
Perhaps - it is hard to know. My personal preference would be to make the questions completely free of 'trickery'.
October 23, 2012 at 8:29 am
Nice question, thanks.
January 9, 2013 at 2:32 am
Sorry but I think it's a bit tricky to create an indexed view with no index !
not really a knwledge question but a question about attentive reading
Viewing 7 posts - 16 through 21 (of 21 total)
You must be logged in to reply to this topic. Login to reply