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
c7b9367c
Commit
c7b9367c
authored
10 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
RDBMS to XSD transformation
parent
e5be03ce
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
Sda1/Etest/XmlSchema2RdbmsSchema/exercise.xhtml
+30
-0
30 additions, 0 deletions
Sda1/Etest/XmlSchema2RdbmsSchema/exercise.xhtml
with
30 additions
and
0 deletions
Sda1/Etest/XmlSchema2RdbmsSchema/exercise.xhtml
0 → 100644
+
30
−
0
View file @
c7b9367c
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
Exercise 1
</title>
</head>
<body><h2>
Objective
</h2><p>
Express a given relational schema by an XSD
Schema description.
</p><h2>
Description
</h2><p>
Consider the following
relational schema:
</p><pre>
CREATE TABLE Person (
id INTEGER NOT NULL PRIMARY KEY
,fullName VARCHAR(20) NOT NULL
,birth DATE
,category CHAR(12)
,CHECK (category IN ('friend', 'customer', 'colleague'))
);
CREATE TABLE Address (
person INTEGER NOT NULL PRIMARY KEY REFERENCES Person
ON DELETE CASCADE
ON UPDATE CASCADE
,street VARCHAR(255) NOT NULL
,number VARCHAR(255) NOT NULL
,town VARCHAR(255) NOT NULL
,zip CHAR(7) NOT NULL
);
</pre><h2>
ToDo
</h2><p>
Create a corresponding
<code>
XSD
</code>
file
resembling the above schema's integrity constraints as closely as possible.
Upload your result
</p></body>
</html>
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