Arithmetic

  • Junior Galvão - MVP

    SSCertifiable

    Points: 6366

    Comments posted to this topic are about the item Arithmetic

  • Stewart "Arturius" Campbell

    SSC Guru

    Points: 71255

    Nice, easy question to end the week on, thanks Junior

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • Budd

    Hall of Fame

    Points: 3566

    So why is it that with all the Implicit conversions that SQL can do, something, that to me seems so simple, has never been made addressed ?

  • webrunner

    One Orange Chip

    Points: 29832

    Thanks - tricky question for me, but I learned something.

    - webrunner

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and says Can I join you?
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

  • Luis Cazares

    SSC Guru

    Points: 183523

    Budd - Friday, June 22, 2018 6:58 AM

    So why is it that with all the Implicit conversions that SQL can do, something, that to me seems so simple, has never been made addressed ?

    This has nothing to do with implicit conversions. This is assigning a value to a type larger that it allows. If this were a column, you should have to implicitly change the column definition, that's just a recipe for disaster.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • Kaye Cahs

    SSCarpal Tunnel

    Points: 4135

    webrunner - Friday, June 22, 2018 8:42 AM

    Thanks - tricky question for me, but I learned something.

    - webrunner

    Many times, what I learn from the QotD is to slow down and pay attention to the details.  This question is a good example.  I scanned it & didn't connect the details in the declaration and the assignment.  I could blame the absence of caffeine in my system, but the real problem is my lack of attention to detail.
    Thanks for the question, Junior.

  • Ray Herring

    SSCertifiable

    Points: 5181

    What does the SSMS version have to do with the question.

    I mean it is a good question, requiring attention to detail but the SSMS version is totally unrelated.

  • Eirikur Eiriksson

    SSC Guru

    Points: 182343

    Ray Herring - Saturday, June 23, 2018 11:11 AM

    What does the SSMS version have to do with the question.

    I mean it is a good question, requiring attention to detail but the SSMS version is totally unrelated.

    We see it all the time, magicians, politicians and IT consultants throwing in unrelated things 😀
    😎

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply