Sha256: cd4e2c7e4e9c4f13cfc52a540658e532dd7d9d252c3c34a9a7b059e9776059da

Contents?: true

Size: 676 Bytes

Versions: 396

Compression:

Stored size: 676 Bytes

Contents

create or replace package raindrops#
is
  function convert (
    i_num                                         pls_integer
  ) return varchar2;
end raindrops#;
/
 
create or replace package body raindrops#
is
  function convert (
    i_num                                         pls_integer
  ) return varchar2
  is
    l_sound                                       varchar2(15) := '';
  begin
    if mod(i_num, 3) = 0 then l_sound := l_sound || 'Pling'; end if;
    if mod(i_num, 5) = 0 then l_sound := l_sound || 'Plang'; end if;
    if mod(i_num, 7) = 0 then l_sound := l_sound || 'Plong'; end if;
    return nvl(l_sound, to_char(i_num));
  end convert;
end raindrops#;
/

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.179 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.178 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.177 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.176 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.175 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.174 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.173 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.172 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.171 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.170 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.169 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.167 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.166 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.165 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.164 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.163 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.162 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.161 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.160 tracks/plsql/exercises/raindrops/example.plsql