Skip to content
Snippets Groups Projects
Commit 8b817526 authored by Clemens Kupke's avatar Clemens Kupke
Browse files

lab1monday

parent ddc34297
No related branches found
No related tags found
No related merge requests found
CREATE OR REPLACE FUNCTION add_salaries()
CREATE OR REPLACE FUNCTION max_salaries()
RETURNS emp.sal%TYPE AS
$$
......@@ -15,7 +15,7 @@ BEGIN
LOOP
FETCH c_emp INTO salary;
EXIT WHEN NOT FOUND;
maxsal = GREATEST(total,maxsal);
maxsal = GREATEST(maxsal,salary);
END LOOP;
CLOSE c_emp;
RETURN total;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment