Forum Replies Created

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

  • RE: FizzBuzz

    Thanks!

  • RE: FizzBuzz

    not sure what your getting at. I guess because it runs recursively and relys on previous result set to generate next which is a more programmatical construct?

    Would you advocate...

  • RE: FizzBuzz

    because they cannot be run in parallel guess?

  • RE: FizzBuzz

    --Now scalable, set based and added a fizzbuzz!

    DECLARE @threshold int = 100

    ;WITH numbers ( seqnum )

    AS (...

  • RE: FizzBuzz

    window function version

    SELECT TOP 100 --*

    --,

    CASE WHEN ROW_NUMBER() OVER (ORDER by object_id) % 3 = 0 THEN 'FIZZ'

    WHEN ROW_NUMBER() OVER (ORDER by object_id) % 5 = 0 THEN 'BUZZ'

    ELSE...

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