Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/General-FizzBuzz/SQL/general-fizzbuzz.sql
Normal file
12
Task/General-FizzBuzz/SQL/general-fizzbuzz.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
This code is an implementation of "General FizzBuzz" in SQL ORACLE 19c
|
||||
*/
|
||||
select lpad( nvl( case when mod(level, 3) = 0 then 'Fizz' end
|
||||
|| case when mod(level, 5) = 0 then 'Buzz' end
|
||||
|| case when mod(level, 7) = 0 then 'Baxx' end
|
||||
, level)
|
||||
,12) as output
|
||||
from dual
|
||||
connect by level <= 107
|
||||
;
|
||||
/
|
||||
Loading…
Add table
Add a link
Reference in a new issue