Skip to content
Snippets Groups Projects
Commit c7b9367c authored by Goik Martin's avatar Goik Martin
Browse files

RDBMS to XSD transformation

parent e5be03ce
No related branches found
No related tags found
No related merge requests found
<?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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment