How would you write a SQL query that returns numbers with FizzBuzz rules (multiples of 3 and 5) for a given range?
Write a query against a numbers table that returns each value in the requested range with its FizzBuzz label. Treat the range as inclusive, and ignore any rows where the number is NULL.
number, fizzbuzz_valuefizzbuzz_value must be FizzBuzz for multiples of 15, Fizz for multiples of 3, Buzz for multiples of 5, and the number itself as text otherwisenumber ascending| Column | Type | Description |
|---|---|---|
| number | INT | Integer value to evaluate with FizzBuzz rules |