Forum Replies Created

Viewing 15 posts - 1,951 through 1,965 (of 3,348 total)

  • RE: Rounding question

    crmitchell (11/19/2012)


    Hugo Kornelis (11/19/2012)


    mbova407 (11/19/2012)


    Thanks for this question. I always hated/never understood this banker's rounding rule. As you can see from this post it is not just in...

  • RE: Rounding question

    mbova407 (11/19/2012)


    Thanks for this question. I always hated/never understood this banker's rounding rule. As you can see from this post it is not just in Sql

    (...)

    Like others said...

  • RE: Rounding question

    rmechaber (11/19/2012)


    But I "like" this because it shows up a terrible disdain in SQL Server for handling basic mathematics under certain circumstances. I don't like the "it's a floating...

  • RE: Rounding question

    I'm not really happy with the question, and the explanation is just wrong.

    When I saw the question, I knew it was going to be related to inaccuracy in the floating...

  • RE: Usage of @@ERROR in Transaction

    Neil Thomas (11/16/2012)


    I'm obviously having a dense Friday.

    How does the explanation (all about @@error) relate to the question: "What is returned from #tblTrans when you run the below code:"...?

    I'm not...

  • RE: Defaults

    Roland Alexander STL (11/15/2012)


    No, I don't believe I'm confused. Have a look at the list at http://msdn.microsoft.com/en-us/library/ms143729.aspx where you'll find this entry:

    Use of DEFAULT keyword as default value.

    Do not...

  • RE: Defaults

    Roland Alexander STL (11/15/2012)


    We ought to make note here that DEFAULT has been deprecated in an unspecified future version of SQL Server, so don't get too attached to it 🙂

    I...

  • RE: LEAD - 1

    Dan Graveen (10/31/2012)


    Of course I had to read up on LEAD before answering this question. MSDN states: "Notice that because there is no lead value available for the last row...

  • RE: LEAD - 1

    john.arnott (10/30/2012)


    Raghavendra Mudugal (10/30/2012)


    Just trying to understand...

    (...)

    If the OVER (Order By UserID) was used then XRAY will get the 50.00 as he is on the 5 position and EASY in...

  • RE: LEAD - 1

    ben.norris (10/30/2012)


    Aha, right you are, my mistake. Shame Hugo was too busy being condescending to make that point clear.

    I am sorry to hear that you perceived my reply as...

  • RE: LEAD - 1

    ben.norris (10/30/2012)


    It doesn't state that the field is nullable

    First: It does. The CREATE TABLE script does not include a NOT NULL constraint, so the columns are all nullable.

    Second: That is...

  • RE: LEAD - 1

    It's great to see a question about new SQL 2012 functionality. And the question itself is quite good - but it could have been better.

    I saw two possible improvements beefore...

  • RE: Parsing values in the WHERE clause

    Good question, but the explanation is wrong. SQL Server always parses each query.

    bitbucket-25253 (10/28/2012)


    From the justification of what the correct answer is:

    Therefore a single value in the WHERE... IN clause...

  • RE: PARSENAME

    Definitely a good question.

    I regularly use PARSENAME to access the elements of a dot-seperated string. And yet, I still always have to check the documentation to recall which part each...

  • RE: Five percent rounded down

    venoym (10/24/2012)


    I must ask, because this section of code gives the proper answer of 105. Why does casting to anything besides an INT (TinyInt, Int, BigInt, etc.) return 105?

    I...

Viewing 15 posts - 1,951 through 1,965 (of 3,348 total)