Viewing 5 posts - 1 through 5 (of 5 total)
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...
January 28, 2014 at 7:20 am
--Now scalable, set based and added a fizzbuzz!
DECLARE @threshold int = 100
;WITH numbers ( seqnum )
AS (...
January 28, 2014 at 7:02 am
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...
January 27, 2014 at 4:20 am
Viewing 5 posts - 1 through 5 (of 5 total)