FizzBuzz has long been used as an interview screening device for computer programmers. The task is as follows: Print the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
For what it's worth, here I present my own T-SQL implementation of FizzBuzz consisting of a single SELECT statement.
Feel free to reply with your own variation in the discussion forum for this post.