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
82f2f1e1
Commit
82f2f1e1
authored
4 years ago
by
Alexander Hinneburg
Browse files
Options
Downloads
Patches
Plain Diff
parabel für U04
parent
dd89f2c4
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/08-parabel.sql
+25
-0
25 additions, 0 deletions
init/08-parabel.sql
with
25 additions
and
0 deletions
init/08-parabel.sql
0 → 100644
+
25
−
0
View file @
82f2f1e1
CREATE
SCHEMA
IF
NOT
EXISTS
parabel
;
SET
search_path
TO
parabel
;
CREATE
TABLE
PARABEL
(
ID
NUMERIC
(
5
)
NOT
NULL
,
P
DOUBLE
PRECISION
NOT
NULL
,
Q
DOUBLE
PRECISION
NOT
NULL
,
PRIMARY
KEY
(
ID
));
-- (x-1)(x-2): x^2 -3x + 2, Nullstellen 1 und 2
INSERT
INTO
PARABEL
VALUES
(
1
,
-
3
,
+
2
);
-- (x+1)(x+1) + 1: x^2 + 2x + 2: Keine Nullstellen
INSERT
INTO
PARABEL
VALUES
(
2
,
+
2
,
+
2
);
-- (x+1)(x+1): x^2 +2x + 1: Eine Nullstelle -1
INSERT
INTO
PARABEL
VALUES
(
3
,
+
2
,
+
1
);
-- (x-3)(x+4): x^2 + x - 12: Nullstellen +3, -4
INSERT
INTO
PARABEL
VALUES
(
4
,
+
1
,
-
12
);
commit
;
GRANT
USAGE
ON
SCHEMA
parabel
TO
student
;
GRANT
SELECT
ON
ALL
TABLES
IN
SCHEMA
parabel
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