When the obvious answer is obviously wrong

Posted by John Paul Cook on SQL Blog See other posts from SQL Blog or by John Paul Cook
Published on Thu, 10 Mar 2011 04:52:00 GMT Indexed on 2011/03/10 8:16 UTC
Read the original article Hit count: 324

Filed under:
This post is about how simple math in T-SQL can produce undesirable results, but first we begin with a math quiz. Answer the following as quickly as possible: You just read pages 100-300 of a book. How many pages did you read? QUICKLY NOW! For those of you who answered 200 pages, I have a new question: Which page did you not read? There were 201 pages to read. If you read 200 pages, you skipped a page! What your answer be if I asked you how many pages did you read if you read pages 1-3? Three pages!...(read more)

© SQL Blog or respective owner