• Keine Ergebnisse gefunden

Relational Databases I Exercise Sheet 05: Relational Model (36 points)

N/A
N/A
Protected

Academic year: 2021

Aktie "Relational Databases I Exercise Sheet 05: Relational Model (36 points)"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Relational Databases I

Exercise Sheet 05: Relational Model (36 points)

(due by Thursday, November 28, 2013)

Please note: You need 50% of all exercise points to receive the Studienleistung. Solutions have to be turned in on paper until Thursday before the lecture either in the lecture hall or into our mailbox (Informatikzentrum 2nd floor). Please write your matriculation numbers and your tutorial group number on your solutions! You may answer in German or English. You need to pass both the exercises and the exam for the RDB 1 module! Unless otherwise specified: Always use your own words!

Exercise 1 – Sets and Constraints (10 points)

a) Give an example for an intensionally and an extensionally specified set. Briefly explain the difference between these two kinds of specifications. (2 points)

b) Explain the difference between finite and infinite sets. How can an infinite set be specified? (2 points)

c) Give an extensional or an intensional set specifications of the following tasks: (3 points) i. All integers between -5 and 5.

ii. The aliases of the Fantastic Four.

iii. All natural numbers bigger than 10.

d) Briefly define each of the three structural constrains and describe their purpose. (3 points)

Exercise 2 – Database Schema (4 points)

Very briefly describe database schema and database instance. Give an example of a relational database schema and provide a valid relational database instance for that schema.

Exercise 3 – Conversion of Chen EER into a Relational Schema (22 points)

Given the following Chen EER diagrams: Convert each diagram to its corresponding relational schema. Domains do not have to be modeled. Try to model as many constraints as possible in your model. Please write down all additional constraints from the EER diagram that are not represented in your relational schema. Always prefer the relational schema with the least Relations!

a. N:M relationship (3 points)

(2)

Relational Databases I

b. 1:N relationship (3 points)

c. Superclass with subclasses (4 points)

d. A Marvel universe (12 points)

Referenzen

ÄHNLICHE DOKUMENTE

If you forget to write your Matrike- lnummer and/or your tutorial group number, you get automatically 0 points!. Your solutions may be in German

Solutions have to be turned in on paper until Thursday before the lecture either in the lecture hall or into our mailbox (Informatikzentrum 2nd floor)!. Please write

Since okapis are on the ICUN Red List of Threatened Species, additional information is recorded: For each okapi, information about its parents – their home countries and the names

A home might even be an evil lair or a secret base (or both, if a hero and a villain rent an apartment in the same building). An evil lair does always contain a weapon of

The new allies stopped fighting until a new integrated organization schema will be available… Integrate the schemas of the Doomsday Legion and the Agents of S.H.I.E.L.D. (see

e) For each power type of powers with greater reach than 5, return the number of heroes that possess it.

e) A list of last names of all those students that took at least all exams in all courses with a course number between 110 and

Given the relational database schema in Exercise 0 and based on the SQL syntax from the lecture, provide an SQL query for each of the following tasks:. a) A query for all