Академический Документы
Профессиональный Документы
Культура Документы
Design process
Data requirements
Interview, scenario
Conceptual design
Logical design
Definition of database
Conceptual Modelling
05/08/2014
05/08/2014
Goals (Elmasri)
Property
Overall approach
05/08/2014
Processor requirements
Use case analysis
Application programs
05/08/2014
Properties
Example
Two types
Intrinsic
Depend on one entity only
Mutual
Depend on existence of more than one entity
05/08/2014
05/08/2014
8/5/2014
Relations/Relationships
Entity type
e.g. Marriage
Relationship between a man and a woman
Could mean a wedding service at a certain church.
05/08/2014
Reader
http://www.gliffy.com/products/online/
University of Botswana - CSI481 Database
30-day free trial
Systems
Binary relationships
Associations between entities
Role names
Cardinality
Reader
+owner
One-to-one
One-to-many
Many-to-many
Pet
05/08/2014
Man
+husband
marries
+wife
0..1
has read
0..n
Book
0..n
05/08/2014
10
0..n
supervises
Pet
UML
Woman
0..1
Reader
05/08/2014
Owner
1
11
05/08/2014
12
8/5/2014
Recursion
Person
Degree of relationship
The degree is number of participating entities;
binary
Higher
UML
+child
0..n
+parent
parental
05/08/2014
13
Ternary relationship
Killer
14
Attributes
Have a name and a type
The type can be primitive (int, String) or
another class (Date, Address).
Can be multivalued
Can be derived
Victim
1
Murder
05/08/2014
1..n
1..n
Weapon
05/08/2014
15
05/08/2014
Multivalued attributes
telephoneNumber[1..3]
At least one value but at most three
telephoneNumber[0..1]
The telephone number can be null or alternatively
a single value can be held
telephoneNumber[1..*]
At least one value and possibly an unlimited
number of values
05/08/2014
05/08/2014
8/5/2014
Derived
Uniqueness
Method
Turned into a real attribute
05/08/2014
05/08/2014
05/08/2014
05/08/2014
Requirements
05/08/2014
05/08/2014
8/5/2014
And
And
Company
idNo
05/08/2014
USA
05/08/2014
Company
USA
idNo
SSN
SSN
owns
owns
0..1
1
Department
1
Department
Employee
idNo
idNo
0..1
manages
0..n
member of
next of k in
0..n
next of k in
0..n
0..n
controls
0..1
1
+manager Employee
controls
Dependent
Dependent
work s on
0..1
0..1
Project
Project
0..n
05/08/2014
05/08/2014
Generalisation
Tinker
role
Person
Participation
Multiple classification
Sex{complete}
Male
Tailor
05/08/2014
Female
05/08/2014