This shows you the differences between two versions of the page.
kurs:uebung_4.2 [2014/09/10 21:22] |
kurs:uebung_4.2 [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
+ | FUNCTION F_BONUS | ||
+ | (salary in number) | ||
+ | RETURN number IS | ||
+ | v_bonus number(2,2); | ||
+ | BEGIN | ||
+ | v_bonus := 0.05; | ||
+ | if salary<5000 then | ||
+ | v_bonus := 0.2; | ||
+ | end if; | ||
+ | return v_bonus; | ||
+ | END; | ||
+ | </code> |