Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Goik Martin
GoikLectures
Commits
cee3d5f0
Commit
cee3d5f0
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
baa4bf28
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
Exam/Sda1/RdbmsStudents2xml/rdbmsStudents2xml_solution/Schema/schema.sql
+2
-2
2 additions, 2 deletions
...Students2xml/rdbmsStudents2xml_solution/Schema/schema.sql
with
2 additions
and
2 deletions
Exam/Sda1/RdbmsStudents2xml/rdbmsStudents2xml_solution/Schema/schema.sql
+
2
−
2
View file @
cee3d5f0
...
@@ -7,7 +7,7 @@ CREATE TABLE StudyCourse (
...
@@ -7,7 +7,7 @@ CREATE TABLE StudyCourse (
,
shortName
CHAR
(
3
)
UNIQUE
,
shortName
CHAR
(
3
)
UNIQUE
,
program
CHAR
(
1
)
/* Bachelor or Master program? */
,
program
CHAR
(
1
)
/* Bachelor or Master program? */
,
CHECK
(
program
IN
(
'B'
,
'M'
))
/* Mysql does not really honour CHECK constraints, but pretend it does! */
,
CHECK
(
program
IN
(
'B'
,
'M'
))
/* Mysql does not really honour CHECK constraints, but pretend it does! */
)
ENGINE
=
InnoDB
;
);
CREATE
TABLE
Student
(
CREATE
TABLE
Student
(
id
INTEGER
NOT
NULL
PRIMARY
KEY
id
INTEGER
NOT
NULL
PRIMARY
KEY
...
@@ -15,7 +15,7 @@ CREATE TABLE Student (
...
@@ -15,7 +15,7 @@ CREATE TABLE Student (
,
email
VARCHAR
(
255
)
NOT
NULL
UNIQUE
,
email
VARCHAR
(
255
)
NOT
NULL
UNIQUE
,
studyCourse
INTEGER
,
studyCourse
INTEGER
,
FOREIGN
KEY
(
studyCourse
)
REFERENCES
StudyCourse
(
id
)
,
FOREIGN
KEY
(
studyCourse
)
REFERENCES
StudyCourse
(
id
)
)
ENGINE
=
InnoDB
;
);
-- example data corresponding to university.xml --
-- example data corresponding to university.xml --
...
...
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