Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MISQUERY ONLINE
SELECT n,
CASE
WHEN n % 15 = 0 THEN 'FizzBuzz'
WHEN n % 3 = 0 THEN 'Fizz'
WHEN n % 5 = 0 THEN 'Buzz'
ELSE CAST(n AS text)
END AS f
FROM
GENERATE_SERIES(
(SELECT a FROM tbl),
(SELECT b FROM tbl)) AS tmp(n);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.