IT354 013600001084 Assignment
IT354 013600001084 Assignment
UNIVERSITY OF PORTSMOUTH
ASSIGNMENT
INSTRUCTIONS
Marks will be awarded for good presentation and thoroughness in your approach.
NO marks will be awarded for the entire assignment if any part of it is found to be copied
directly from printed materials or from another student. If any part of this assignment is
found to be copied from any sources without the correct citations, marks may be deducted,
and in cases of extensive plagiarism, the assignment may have all the marks withheld
pending a plagiarism hearing.
013600001084 1
References:-
Quotes are referenced
Reference list provided
Has an ECF been submitted for any reason
Student Declaration:
I declare
that:
I understand what is meant by plagiarism.
The implications of plagiarism have been explained to me by my
institution.
This assignment is all my own work and I have acknowledged any use
of the published or unpublished works of other people.
In submitting this form and assignment I state that all work carried
out is my own, in content, words and ideas, unless otherwise shown
using correct citations and quotation marks. In checking the boxes
above, I declare that these items have been checked and are correct.
013600001084 2
Table of Contents
Question 5. De-Normalization.................................................................................................................. 13
References .................................................................................................................................................. 15
013600001084 3
Question1 Designing Relational Database using Top-Down Method
ii)
Services
iii)
Weak Entity-CheckUp
Entity Checkup depends upon the Doctor Entity as it cannot identify all the attributes by itself.
iv)
Accommodation-Has many multi-valued attributes
Acctype (type of accommodation flat or villa)
#bedrooms (1BHk, 2BHk)
Contact# (Landline, mobile)
013600001084 4
v) Relationship with Cardinality 1:1
ix)EERD
013600001084 5
GRAND WORLD SERVICE
Multivalued Contact#
ACC_Type Gender
Attribute R_ID
Address
Contact# Provides S_ID G_ID
Multivalued
Attribute Multivalued Contact#
Super Entity S_Type
Services Attribute
Sub Entity
Kitchen
Cleaning Cleans
Sub Entity Medical
Entertainment
Has
C_Name E_time
Weak Entity
Clinic
FoodMenu Item Has
Accommodation
ACC_No ACC_Type ACCName Location #Bedrooms Contact#
Resident
R_ID Acc_No R_Name R_FirstName R_lastname DOB Gender Email Contact#
Guardian
G_ID R_ID Name Address Contact#
Employees
E_ID E_Name E_Firstname E_Lastname Address DOJ Salary Email Contact#
FoodMenu
FM_No FM_Type Day Timing Item
Clinic
C_Name Location Contact#
Doctor
D_ID D_Name D_FirstName D_Lastname Address Specialty Contact#
CheckUp
C_ID R_ID D_ID C_date C_next Treatment
Events
E_No E_Name E_Artist E_Date E_Time
After Translation
Accommodation
ACC_No ACC_Type ACCName Location #Bedrooms Contact#
ResidentDetails
R_ID Acc_No R_Name DOB Gender Email Contact# Name Address GContact#
013600001084 7
ii) Translation of the Weak Entity
Weak Entity always depend on the strong entity. Primary key formed is a composite
key combining 1 attribute of weak-entity and primary-key of strong entity.
After
Clinic- C_ID, C_Name, Location, Contact#
Doctor-D_ID, C_ID, D_Name, Address, Specialty, Contact# Primary key: D_ID
013600001084 8
Residents- R_ID, G_ID, ACC_No, R_Name, DOB, Gender, Email, Contact#
After Translation
Guardian: Record_No, G_ID, ACC_No Name, Address, Contact#
013600001084 9
Relation Attributes DataType size Primary-Key Foreign-key
013600001084 10
Relation Attributes DataType size Primary-Key Foreign-key
c) Functional Dependencies:
For the given X, Y attributes in a relation X if only one of the values of Y correspond to
X then Y is said to be functionally dependent upon X. (Anon., 2012)
X->Y
Functional dependency can also be based upon a composite attribute.
X, Z->Y
Cust_ID-> {Cust_Name, Cust_Address, Cust_ContactNo}
Customer name, address and contact no is dependent upon the customer ID.
013600001084 11
ParkingName, parkingLane, Customer entry and exit is dependent upon the composite
key Card_ID and the Cust_ID
013600001084 12
Question 5. De-Normalization
Parking Area can be split up into two relations parking and parking lane
Parking
P_ID P_Name
1 DeMontFort
2 BrookField
ParkingLane
P_ID P_Lane P_Status
1 D1 Occupied
1 D2 Occupied
2 B1 Vacant
2 B2 Occupied
1 D3 Vacant
2 B3 Occupied
2 B4 Occupied
1 D4 Vacant
R2= P_ID R1
R3= P_Name R2
013600001084 13
Show CustomerName whose Card_ID=501
R2= Cust_ID R1
R3= Cust_Name R2
013600001084 14
References
1. Anon., 2012. System Analysis and Design. [Online]
Available at: http://nptel.ac.in/courses/Webcourse-contents/IISc-
BANG/System%20Analysis%20and%20Design/pdf/Lecture_Notes/LNm8.pdf
[Accessed 10 July 2016].
3. R.Elmasri and S.B.Navathe, Fundamentals of Data Base Systems, 6th Edition Pearson
Chapter 9 Relational Database Design by ER-to-Relational Mapping section 9.1 page 287
013600001084 15