SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Round up or down II


Round up or down II

Author
Message
David Data
David Data
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 810
I got one right, good! (I've used the . myself, usually as 3.0 rather than 3. for - as you say - greater clarity.)

But something went wrong with the Email version of the question, which was:
What wiil (sic) be the result when running this code?

By Hugo Kornelis

        Think you know the answer? Click here, and find out if you are right.


So how were we to know whether we knew the answer to a question that was not stated?!
Hugo Kornelis
Hugo Kornelis
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11296 Visits: 12005
David Data (8/10/2010)
But something went wrong with the Email version of the question, which was:
What wiil (sic) be the result when running this code?

By Hugo Kornelis

        Think you know the answer? Click here, and find out if you are right.


So how were we to know whether we knew the answer to a question that was not stated?!

I posted the code of the question as a graphic, to encourage thinking and research rather than copy/paste behaviour. It seems that such graphics are not always displayed correctly in the newsletter. Why that is, would be something for Steve to find out.


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
David Data
David Data
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 810
Odd. I read mail using Thunderbird, which can handle HTML mail well, and the message had lots of other graphics displaying as usual.

Looking at the message 'source code', I see there IS a graphic link, but it's
img alt="" border="0" src="/Images/6388.jpg" />

The URL is missing the root http://www.sqlservercentral.com/ (which the other images do have), so it's looking for 6388.jpg on my disk instead of on SQLServerCentral's!
Hugo Kornelis
Hugo Kornelis
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11296 Visits: 12005
That sounds like a very probably explanation to me.

I've sent a mail to Steve, asking him to check and then fix this. Thanks, David!


Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
UMG Developer
UMG Developer
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2738 Visits: 2204
Thanks for the great question, and the discussion!
steve block
steve block
SSC Eights!
SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)SSC Eights! (812 reputation)

Group: General Forum Members
Points: 812 Visits: 1563
I got it wrong because I over analyzed. I thought surely it can'y be this easy, Hugo wouldn't give us a cream puff. Must be getting smarter than I give myself credit for.

Steve



Ronald Beuker
Ronald Beuker
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 43
Thanks, Hugo!

All clear to me now. :-)

Reading my question now, many weeks after submitting it, I am wondering if I even should have written it like this - QotD should test SQL understanding, not reading ability

I had noticed the dot, but thought it would raise a syntax error. :-P

By the way, I agree it's best to use pictures to ask QotDs. You don't want it to become a 'copy/paste/F5' Quiz. Hehe

Best regards,

Ronald
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search