Forum Replies Created

Viewing 15 posts - 376 through 390 (of 417 total)

  • RE: Divide by zero error encountered.

    NULLIF((EVT.VAL2), 0)

    Maybe I'm just missing something here, but how can the above EVER return a zero?

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Filling gaps in date ranges

    Are you able to build a calendar or "dimDate" table? That will simplify this and similar queries that come up in the future.

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Formatting a guage with a date scale.

    Anybody? Any ideas? Bueller? Bueller?

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: evidently confused on temp table scope

    Matt Miller (#4) (12/10/2014)


    sqldriver (12/9/2014)


    Grant Fritchey (12/9/2014)


    doesn't everything in sql server? 😉

    Still trying to figure out what the use-case for multi-statement table-valued user-defined functions is. But, other than...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Simple arithmetic

    i saw lots of people on social sites having problems with:

    1+1+1+1+1+1+1+1+1+1+1+1x0+1 = ?

    most of the answers was 1. So saying Simple may apply differently to others :hehe:

    I wonder how the...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: evidently confused on temp table scope

    I would suggest that if your procedure is so complicated you need to step through it you can probably gain a lot by simplifying your code. Often times what I...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #1

    I do believe that this is a violation of the ANSI standard. Maybe not of the letter of the standard (I am not even sure if variables are included in...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: How to format unformated phone numbers Please...,

    Eirikur Eiriksson (12/8/2014)


    DonlSimpson (12/8/2014)


    Are you required to store the number with the formatting? It can be easier to apply the formatting when retrieving the phone number.

    Quick thought, if there...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: t-sql help!

    It seems like you might want to consider doing this with a reporting tool rather straight out of sql server.

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #1

    Hugo Kornelis (12/8/2014)


    DonlSimpson (12/8/2014)


    Hugo Kornelis (12/7/2014)


    This code does a "swap" of two variables without requiring a third temporary variable

    Ahem. Why not simply use a single SELECT?

    SELECT @a = @b-2, @b-2...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: How to format unformated phone numbers Please...,

    Are you required to store the number with the formatting? It can be easier to apply the formatting when retrieving the phone number.

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #1

    Hugo Kornelis (12/7/2014)


    This code does a "swap" of two variables without requiring a third temporary variable

    Ahem. Why not simply use a single SELECT?

    SELECT @a = @b, @b = @a;

    This won't...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #2

    Hugo Kornelis (12/7/2014)


    There are good use cases for bitwise logic in SQL Server. This is not one of them.

    Pretty good trivia question, but readers: please do not ever think about...

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #1

    I'm just not sure about somebody who is just not sure about Heisenberg.

    My other thought for a tagline was "Will Rogers never met Pete Rose."

    Don Simpson



    I'm not sure about Heisenberg.

  • RE: Fun with XOR #1

    Ed Wagner (12/5/2014)


    I'm glad we don't have the memory prices of that era any more.

    🙂

    Don Simpson



    I'm not sure about Heisenberg.

Viewing 15 posts - 376 through 390 (of 417 total)