Forum Replies Created

Viewing 15 posts - 7,276 through 7,290 (of 7,483 total)

  • RE: FizzBuzz

    Lynn Pettis (2/24/2010)


    Don't know, Tom, on the server I am using here at work yours actually runs about 4 time longer than my code, about 4 seconds.

    Really comes down to...

    Tom

  • RE: FizzBuzz

    reidres (2/24/2010)


    Well we are looking for apples, not oranges.

    I'm slightly concerned about the apples and oranges issue: is what you are measuring just generating a cte with the numbers...

    Tom

  • RE: FizzBuzz

    tstaker (2/24/2010)


    I've only used Tally tables when running through the articles on this site and haven't had an opportunity to use them in production. In an interview I would of...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    peter-757102 (2/24/2010)


    Man, am I happy to not work in theory, but in the material world (reallity, or at least my experience of it).

    I know how you feel - I...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    RBarryYoung (2/23/2010)


    And here in a nutshell is demonstrated exactly what has been wrong with the academic discipline of Relational Theory for the last 30 years: A complete inability to...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    RBarryYoung (2/23/2010)


    tonyrogerson-498793 (2/23/2010)


    In our context - SQL and the Relational Model the operation happens in one go; feel free to go read Codd, Date and Jim Gray.

    Well, I did read...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    tony rogerson (2/18/2010)


    Sets have no order, they are operated on in their entirity in one go - not a row by row!

    Quirky update is no more set orientated than a...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    tony rogerson (2/18/2010)


    IF you are saying you are happy for this to be used in a production environment then frankly should be sacked because it is clear and proven that...

    Tom

  • RE: The Dynamic Tally or Numbers Table

    Jeff Moden (10/2/2009)


    --===== Find the "gap ranges"

    -- This assumes that gaps include any whole number greater than 0

    SELECT GapStart = (SELECT ISNULL(MAX(b.MyID),0)+1

    ...

    Tom

  • RE: The Dynamic Tally or Numbers Table

    Great article, Lynn. Extremely interesting, and good clear testing report and data.

    All those people querying why generate it dynamically amaze me - I wouldn't dream of having a static...

    Tom

  • RE: The Dynamic Tally or Numbers Table

    the sqlist (9/22/2009)


    Here is another version that WILL work on any SQL version and the code is pretty much self descriptive and easy to understand by everyone. I agree that...

    Tom

  • RE: FizzBuzz

    Jeff Moden (2/23/2010)


    Gary Varga (2/23/2010)


    Jeff Moden (2/23/2010)


    You're right, Gary... it might make a good article called "Winning the Interview with Code" or somesuch.

    OK. Perhaps two articles. The one you suggest...

    Tom

  • RE: FizzBuzz

    Jeff Moden (2/23/2010)


    Tom.Thomson (2/22/2010)


    By the way, there was method in choosing a hundred million as a limit - it's big enough to need a 3-way cross join of master.sys.all_columns to...

    Tom

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems (Rewritten)

    SwePeso (11/13/2009)


    Make your vioce heard

    Vote on Connect here

    http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=254388

    It's a pity it's asking for the wrong enhancement, instead of for implementaton of range expressions generally.

    Tom

  • RE: FizzBuzz

    Jeff Moden (2/22/2010)


    Loner (2/22/2010)


    Jeff

    Why don't you post your 'perfect' answer?

    I can tell you why... people would simply memorize instead of taking the time to figure it out. 😉

    Well,...

    Tom

Viewing 15 posts - 7,276 through 7,290 (of 7,483 total)