Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS209_2018
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clemens Kupke
CS209_2018
Commits
8b817526
Commit
8b817526
authored
6 years ago
by
Clemens Kupke
Browse files
Options
Downloads
Patches
Plain Diff
lab1monday
parent
ddc34297
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab1mon/lab12.sql
+2
-2
2 additions, 2 deletions
lab1mon/lab12.sql
with
2 additions
and
2 deletions
lab1mon/lab12.sql
+
2
−
2
View file @
8b817526
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment