FizzBuzz in MySQL Using Stored Procedures

FizzBuzz in MySQL Using Stored Procedures

6 years ago
Anonymous $ZPWJA6-QD2

https://medium.com/@judedutton/fizzbuzz-in-mysql-using-stored-procedures-a097f7ca337b

FizzBuzz is a common coding challenge that deals mainly with branch/conditional logic and, depending on the language, data type manipulation. The general idea is this: Given a series of concurrent integer values (i.e. 1–100), print out all of the numbers adhering to the following conditions.

Given the numbers 1–15 the output (as a comma separated list) would look something like this:

Last Seen
about an hour ago
Reputation
0
Spam
0.000
Last Seen
26 minutes ago
Reputation
0
Spam
0.000
Last Seen
16 minutes ago
Reputation
0
Spam
0.000
Last Seen
4 hours ago
Reputation
0
Spam
0.000
Last Seen
a minute ago
Reputation
0
Spam
0.000
Last Seen
8 minutes ago
Reputation
0
Spam
0.000
Last Seen
a couple of minutes ago
Reputation
0
Spam
0.000
Last Seen
about an hour ago
Reputation
0
Spam
0.000
Last Seen
2 hours ago
Reputation
0
Spam
0.000