Zuora interview question

Classic Fizz Buzz in both code logic and SQL logic