Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
www-pgrest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbis-public
www-pgrest
Commits
d27e2fbb
Commit
d27e2fbb
authored
3 years ago
by
Alexander Hinneburg
Browse files
Options
Downloads
Patches
Plain Diff
resultate
parent
f4d72453
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init/10_resultate.sql
+34
-0
34 additions, 0 deletions
init/10_resultate.sql
with
34 additions
and
0 deletions
init/10_resultate.sql
0 → 100644
+
34
−
0
View file @
d27e2fbb
CREATE
SCHEMA
IF
NOT
EXISTS
resultate_public
;
SET
search_path
TO
resultate_public
;
-- Zwei alternative Darstellungen der Punkte fuer Hausaufgaben
-- sowie Zwischen- und Endklausur:
CREATE
TABLE
Resultate_1
(
STUDENT
VARCHAR
(
20
)
NOT
NULL
,
H
NUMERIC
(
3
)
NOT
NULL
,
Z
NUMERIC
(
3
)
NOT
NULL
,
E
NUMERIC
(
3
)
NOT
NULL
,
PRIMARY
KEY
(
STUDENT
)
);
INSERT
INTO
Resultate_1
VALUES
(
'Jim Ford'
,
95
,
60
,
75
);
INSERT
INTO
Resultate_1
VALUES
(
'Ann Lloyd'
,
80
,
90
,
95
);
CREATE
TABLE
Resultate_2
(
STUDENT
VARCHAR
(
20
)
NOT
NULL
,
ATYP
CHAR
(
1
)
NOT
NULL
,
PROZENT
NUMERIC
(
3
)
NOT
NULL
,
PRIMARY
KEY
(
STUDENT
,
ATYP
)
);
INSERT
INTO
Resultate_2
VALUES
(
'Jim Ford'
,
'H'
,
95
);
INSERT
INTO
Resultate_2
VALUES
(
'Jim Ford'
,
'Z'
,
60
);
INSERT
INTO
Resultate_2
VALUES
(
'Jim Ford'
,
'E'
,
75
);
INSERT
INTO
Resultate_2
VALUES
(
'Ann Lloyd'
,
'H'
,
80
);
INSERT
INTO
Resultate_2
VALUES
(
'Ann Lloyd'
,
'Z'
,
90
);
INSERT
INTO
Resultate_2
VALUES
(
'Ann Lloyd'
,
'E'
,
95
);
GRANT
USAGE
ON
SCHEMA
resultate_public
TO
student
;
GRANT
SELECT
ON
ALL
TABLES
IN
SCHEMA
resultate_public
to
student
;
\ No newline at end of file
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