Forum Replies Created

Viewing 15 posts - 1 through 15 (of 110 total)

  • Reply To: Swapping values of variables

    Back to the basics question - love it!

  • Reply To: Rounding in Python

    Python newbie here.  Why is the value of val1 (and val2) 30.0 and not just 30?

     

  • Reply To: The VALUES Limit

    "What's a table valued constructor?" was definitely my "correct" answer today!  Learned something.

  • RE: FK to IDENTITY

    nenad-zivkovic (4/24/2013)


    Thank you all for your comments. I am glad to hear you liked the question, as this is first time I am posting one. Idea for this came up...

  • RE: COUNT() Function

    The problem with the original explanation is this


    COUNT(convert(int,NULL)) - It will give count as 0 always. Don't know why it is giving 0 count however COUNT() function counts NULL...

  • RE: COUNT() Function

    I thought the original poster's explanation was great: I found it very simple to understand and I liked the way each count statement was addressed individually.

  • RE: DATETIME - 4

    sknox (3/18/2013)


    I'm curious: What was the point of the cursor-like WHILE and incrementing the ID by 3? Just Obfuscation? Why didn't you just write the query as:

    SELECT ID AS 'Select...

  • RE: Casting question

    I guess I'm the only one that initially looked for '1/9' as an answer choice. Doh.

  • RE: Temp Table Data Types

    I nominate this question for Best Question of the Month! Well-written and has real world implications if not understood.

    But, I will point out this is not just true for...

  • RE: SET Options - 2

    Hugo Kornelis (12/4/2012)


    I picked the wrong option. If I had checked the submitter of the question, I probably would have picked the right option - I don't think I ever...

  • RE: Pass a parameter to OpenQuery?

    Stumbled across this Q&A thread using Google. Jeff's solution was ideal for my situation. Thank you!

  • RE: LEAD - 1

    john.arnott (10/30/2012)


    ... Let's step through the query...

    Thank you, john.arnott, for your detailed explanation. No doubt there were many of us who benefitted!

  • RE: IDENTITY INSERT

    sknox (9/27/2012)


    1. Query 1 fails because there are no values provided to INSERT.

    2. Query 2 fails because the syntax for SET IDENTITY_INSERT requires a table name.

    3. Query 3 succeeds because...

  • RE: GO Part 2

    joe.wolfe (9/13/2012)


    The given answer to this question is "true", but I am not sure this is correct. The "NotGo" throws an error "Incorrect syntax near 'NotGo'" and the variable
  • RE: Inserts

    mtassin (8/23/2012)

    All I saw was

    S : Query ran successfully

    E : Error in Query , "blah blah blah about error message"

    Wow, have you considered vision corrective lenses?

    (Forgive me, I can't...

Viewing 15 posts - 1 through 15 (of 110 total)