Created
February 28, 2018 07:39
-
-
Save Goryudyuma/34bd3c2b8d90a2a09c42868be320bd20 to your computer and use it in GitHub Desktop.
MISQUERY ONLINE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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