Problem 2
Suppose we have a relation schema ABCD and the dependencies
A->->B and B->C
(i.e., A multidetermines B, while B
functionally determines C).
Which of the following dependencies must hold?
For each, either give a reason why, or give a counterexample relation
instance for ABCD.
Problem 3
Assume that the following relation person(ssn, name, address,
phone-nr, father, mother) is given. Additionally, you can
assume that persons have a unique and non-optional ssn
and that persons have one address,
one name, but might have several phone numbers. Furthermore, man (woman) might
have children with
several women (men). Moreover, different persons might live at the same
address.
Write down all functional dependencies that hold for the
relation person. What is/are the candidate key(s) of relation person?
Problem 4
Exercise 12.4 from page 356 of our textbook
Problem 5
Assume a relation R(A,B,C) is stored using unordered file organization.
A is R's primary key.
Attribute A requires 4 Byte of storage, attribute B requires 4 Byte of
storage and attribute C requires 8 byte of storage; R contains 100000 tuples
and we assume that one block can store 4096 Byte. Moreover, we
assume that node pointer require 2 byte of storage and index pointer
require 4 byte of storage.
How many block accesses
are needed for the following queries:
(Q1) Select A
from R
where B=34 returns 12 answers at an average
(Q2) Select A
from R
where B>17 returns 300 answers at an average
assuming that
Problem 6
Problem 16.3 of our textbook
Problem 7
Your instructor made at least one
incorrect statement in the March 7 class. What is the incorrect
statement. If you think you know what the
incorrect statement is,
correct
it and prove that the corrected statement is true.