Professional Documents
Culture Documents
Wedding_Id Wedding_Id*
Contact_Id * Gift_Id* Gift_Id
Consist Consists
Weddin Wedd_Gift Gift
s
g
a
has
Contact
Contact_Id
Wedding_Id *
* Wedding consist of Wedd_Gift: A wedding can have more one gift; A Guest can by
more than one type of a gift and more than one quantity of a gift.
* Wedding has a Contact details; Assuming that wedding couple (Bride and Groom)
dwell together before marriage and also after the marriage.
2) NORMATIZATION
U.N.F
Assumption:
* Introducing Wedding_id it enables to specify a particular wedding record. on the
other hand using Wedding date as primary key can cause chaos to the Giftland,
because, on a particular given date , there may be more than one wedding could
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
happen. Hence, introducing Wedding_id would be appropriate for the Giftland Gift
shop. Which will uniquely identify wedding.
* A wedding can have more than one gift type and more than one quantity of a
particular Gift type, for instance. Gift K178 Kitchen Scales can be brought by many
guests and could be brought more than one time. Hence Wedding and Gift has been
separated from many to man to one to many relationship, by introducing the
Wedd_gift table.
1.N.F
2.N.F
Assumption:
3.N.F
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
* it is more convenient to separate contact details, than having in the Wedding Table,
because for consistence. for instance; If Contact details were to held in Wedding it
would look like these;
* Assuming that a wedding couple lives at one address and have a telephone line,
which is unique in its own, Tel_no would be more than enough to store in the
database as it will also store mobile_no and Email id, therefore it is not require to
store more than one Tel_no, also implies to Mobile_no and Email. Having store this
data more than one it would require more data storage, well as it will be inconsistent
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
* (a person can have more than one Email id ) but, Assuming a wedding couple have
an email id, just one from couple either groom’s or bride’s email id.
* A person has one mobile no, and one email Id unique (in this case)
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
Wedd_Gift- 3 (Wedding_id*, Gift_id*, Gift_purchased)
TABLES
Wedding
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
Wedding_id Wedding_date Contact_id* Groom Bride
Contact
Contact_id Wedding_id* Address City Postcode Tel_no Mobile_no E-mail
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
Wedd_Gift
Wedding_id* Gift_id* Gift_purchased
W01 K178 1
W02 K144 2
W08 K420 2
W07 C117 8
W01 C242 8
W02 C200 4
W02 H100 1
W06 H101 2
W04 H102 1
W03 H102 1
W05 K178 1
W06 C242 12
W02 H101 1
W02 H103 1
Gift
Gift_id Gift_price Gift_des
K178 £30 Kitchen Scales
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc
(H.D)
/var/www/apps/scribd/scribd/tmp/scratch3/10618342.doc