Professional Documents
Culture Documents
Database 600 ASS
Database 600 ASS
Question 1
1.1 The table shown below stores details of students and the overall grade each student obtained in
different modules. The Primary Key is (studentID, ModuleID).
Results
i. Which Normal Form does the above table violate and why?
ii. Give an example of an update anomaly and example of a delete anomaly that may occur if the
table is left un-normalised. Explain the problems that are caused.
- Update anormally: If a module is to be renamed, it is possible to mistype one of its instances,
thus introducing an inconsistency.
Deletion anormaly: If Students are deleted, modules will also be deleted, resulting in a loss of
modules’details.
- Student(StudentID,StudentName)
- Module(ModuleID,ModuleName)
- Results(Students(StudentID*,ModuleID*,Grade)
1.2 An important concept in the theory of rational databases is that of a functional dependency.
A B C
a1 b1 c1
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
a1 b1 c3
a1 b2 c1
1.3 A company uses the table below to record details of staff.Each staff hs up to three qualifications.
II. Show how this table can be transformed into 1NF tables. Give two possible solutions.
Solution 1
Solution 2
Question 2
Relationships
-VideoForRent IsPartOfRentalAgreement
2.1.2
Attributes
Branch Branch Number(Primary Key),Address,Telephone Number
Video CatalogNumber (Primary Key),VideoNumber, Title,Category,Daily
Rental, Cost,Status, Actor, Names, Director
Video Rented Video Number(Primary Key)
Member Member Number(Primary Key), First Name, Last Name, Address,
Registration Date
Staff Staff number(Primary Key), Name, Position, Salary
Rental Agreement Rental Number(Primary Key)
2.1.3. An attribute represents a property of an entity or a relationship type; it can have different types as
shown
Simple: position or salary attributes of a table staff (they have atomic values)
Derived: duration of a rental, whose value is calculated from two other attributes representing the Start
Date Rent Start and the finish date Rent Finish, both present in the table schema.
Question 3
3.3.1
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
Question 4
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
DATABASE 600 ASSIGNMENT 2
MALAKA MMAPULA CATHRINE 149244 SEMESTER1
References
Connolly, C. E. (1996). Database Systems: A Practical Approach to Design, Implementation, and ... New
york: pearson.