Forum Replies Created

Viewing 15 posts - 451 through 465 (of 552 total)

  • RE: Transactions in T-SQL

    awesome read. 🙂

    (there were some statements where I guess were added to create extra confusion... OR to make it more interesting... 😉 :rolleyes:)

  • RE: COALESCE - 2

    Mike Dougherty-384281 (11/9/2012)


    While it is an interesting exploitation of an edge case, when does this situation happen in real code?

    Does this example illustrate a Fail in the implementation/execution of coalesce()?...

  • RE: COALESCE - 2

    Christian Buettner-167247 (11/9/2012)


    Raghavendra Mudugal (11/9/2012)


    Msg 4127, Level 16, State 1, Line 8

    At least one of the arguments to COALESCE must be an expression that is not the NULL constant.

    .. possibly...

  • RE: COALESCE - 2

    Christian Buettner-167247 (11/9/2012)


    Good question, but wrong explanation (and also wrong error message from SQL Server):

    The coalesce expects at least one typed NULL in order to execute and hence the error.

    Simple...

  • RE: COALESCE - 2

    Good one. 🙂

    Even though knowing the answer (and I said it out loud) ....I made myself to execute the query to confirm.... :w00t: :crazy:

  • RE: SUM and Addition of Null

    🙂 Simply Nice.

    (note: aliasing the columns in the first select statement will be enough)

  • RE: Partitioned index

    Great question, thank you for posting.

    🙁 (I am disappointed with myself, as my low self-esteem level is high normally.... today it is outstanding...)

  • RE: character ordering

    😎 (actually I used extreme advanced skill to make the choice, and I still got it wrong.... but got to learn on load of things)

    Awesome question. 🙂 Thank you Tom

  • RE: LEAD - 1

    Hugo Kornelis (10/30/2012)


    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...

  • RE: Halloween Protection

    🙂

    Indeed a nice question, but for me it was "The Beginner's Luck" thing... good it used the only word "modifying..." in the BOL, and just went and selected UPDATE. :hehe:

    (Although...

  • RE: LEAD - 1

    vk-kirov (10/30/2012)


    ...The value 50.00 does not appear in the results, so I see no problem with the answer given....

    Just trying to understand...

    As it says OVER (ORDER BY Sales) and EASY...

  • RE: Parsing values in the WHERE clause

    Nice question. thank you.

  • RE: PARSENAME

    Hugo Kornelis (10/27/2012)


    ... to access the elements of a dot-seperated string. ...

    ahhh..... now I am relieved...

    Thank you Hugo. 😎

  • RE: Five percent rounded down

    palotaiarpad (10/24/2012)


    Lets play a bit:

    Select cast(100 as real) * 1.05,cast(cast(100 as real) * 1.05 as int);

    -- Result is 105, 104

    The result is very strange for me. Does SQL Server the...

  • RE: Five percent rounded down

    Very interesting, thank you for the question.

    (and Happy Dasara to all)

Viewing 15 posts - 451 through 465 (of 552 total)