Tut 4 With Answer
Tut 4 With Answer
Tut 4 With Answer
Exercise 3.
a. Normal form; normalization Normal form is a state of a particular
relation regarding functional dependencies, while normalization is
the process of decomposing relations with anomalies to produce
smaller, well-structured relations.
b. Candidate key; primary key A primary key is an attribute (or
combination of attributes) that uniquely identifies a row in a relation.
When a relation has more than one such attribute (or combination of
attributes), each is called a candidate key. The primary key is then
the one chosen by users to uniquely identify the rows in the relation.
c. Partial dependency; transitive dependency A partial functional
dependency exists when a nonkey attribute is functionally
dependent on part (but not all) of a composite primary key; a
transitive dependency is a functional dependency between two or
more nonkey attributes.
d. Composite key; recursive foreign key A composite key is a primary
key that consists of more than one attribute, while a recursive
foreign key is a foreign key in a relation that references the primary
key values of that same relation.
e. Determinant; candidate key A determinant is the attribute on the
left-hand side of the arrow in a functional dependency, while a
candidate key uniquely identifies a row in a relation.
f. Foreign key; primary key A primary key uniquely identifies each row
in a relation, while a foreign key is a primary key in another table.
g. Enterprise key; surrogate primary key An enterprise key is a primary
key whose value is unique across all relations in the whole database
and is likely to hold no business meaning. A surrogate primary key is
a primary key whose value is a serial number or other system
assigned value and is unique to the relation.
Exercise 4.
3NF relations for Millennium College are:
OBJECT(OID,Object_Type)
INSTRUCTOR (OID, Instructor_Name, Instructor_Location)
COURSE (OID, Course_No, Course_Title, Instuctor_Name)
STUDENT (OID, Student_No, Student_Name, Major)
OUTCOME (OID, Student_No, Course_No, Grade)
Exercise 5.
a. Shipment Manifest
3rd Norm:
EER Diagram:
b. License Finement
Exercise 6.
Dependency Diagram
3rd Norm:
EER:
Exercise 7. See Tut 5 Solution
Exercise 8.
Team (TeamID, TeamName, Team Manager)
Participation (RaceID, TeamID, DriverID, PointsEarned)
Driver(Driver_ID,DriverAge,DriverName, TeamID)
Race (RaceID, RaceTittle, RaceLocation, RaceDate)
Finish(DriverID, RC_ID, Position,Result)
RaceComponent(RC_ID, RCType, Race_ID)