Forum Replies Created

Viewing 15 posts - 17,071 through 17,085 (of 19,564 total)

  • RE: FizzBuzz

    reidres (2/22/2010)


    Well I have to dispute the scalability of Jeff's implied solution and also think it is clunky and not intuitive.

    Why do you think it is clunky?

    I cringe...

  • RE: Today's Random Word!

    No. Did not know it was a kids game. Interesting insight.

  • RE: Today's Random Word!

    Jeff Moden (2/22/2010)


    FizzBuzz 😛

    Which sparks a question - why is it called FIZZBUZZ?

    Is it because you get a Buzz from the Fizz of a Cola?

  • RE: Today's Random Word!

    Comeback (as in NBA action yesterday)

  • RE: FizzBuzz

    Sean-752587 (2/22/2010)


    Jason

    As far as scaleability is concerned, I did try it with 1 Mil. rows which didn't work in my master database (SQL 2008 dev edition). It topped out at...

  • RE: Cleaning Up Garbage from Data

    Thanks for the article. I tend to use the method similar to what Paul described.

  • RE: Humor

    Yes - that is a classic. I used to have it hanging in my office. Then I moved.

  • RE: FizzBuzz

    jcrawf02 (2/22/2010)


    Agree with Gus on the self-documentation, makes it clearer WHY you're doing it. Comments could do that too, suppose.

    Sean, on yours, casting is unneccessary until the ELSE, and makes...

  • RE: FizzBuzz

    GSquared (2/22/2010)


    Just to annoy Jeff, here's my "ultimate version":

    SET NOCOUNT ON;

    DECLARE @Table1 TABLE (

    ID int IDENTITY PRIMARY KEY,

    Number int);

    DECLARE @Number INT;

    SELECT @Number = 1;

    WHILE @Number <= 100

    BEGIN

    INSERT INTO @Table1 (Number)

    SELECT...

  • RE: FizzBuzz

    J.Faehrmann (2/22/2010)


    I strongly favour the loopbased solution for this limited task. It is concise, readable without any comments and done quickly.

    It performs well enough.

    DECLARE @i INT

    SET @i = 1

    WHILE...

  • RE: FizzBuzz

    Another option would be check out this puzzle roundup[/url] by Grant Fritchey.

  • RE: FizzBuzz

    Jeff Moden (2/21/2010)


    Heh... I just Googled "FIZZBUZZ SOLUTIONS SQL"... I'm amazed and surprised that some of those folks had the nerve to publish some of the solutions they have. ...

  • RE: FizzBuzz

    These sorts of questions could be good. They could also lead down the slippery slope. If speed over quality is the most important - you will end up...

  • RE: Introductions Thread / "For New Posters" Sub-section?

    RBarryYoung (2/21/2010)


    CirquedeSQLeil (2/21/2010)


    Actually creating a thread or forum is not the difficult thing by far.

    The difficult thing is ensuring that people read it. Just like a Terms & Conditions...

  • RE: Introductions Thread / "For New Posters" Sub-section?

    RainbowFfolly (2/21/2010)


    ...

    I must admit the idea of the dozen or so articles people get pointed to intrigues me; what areas do they cover?

    Check the article by Gail Shaw in my...

Viewing 15 posts - 17,071 through 17,085 (of 19,564 total)