Professional Documents
Culture Documents
V1.0
V1.0
Learning Outcomes
By the end of this topic students will be able to:
List the steps in logical design
Give an account of the main activities that make up
logical design
Check the integrity constraints on their data model
V1.0
V1.0
Logical Design
Step One: Create and check ER model
Step Two: Map ER Model to tables
V1.0
Iterative
Discussed as a series of steps but...
Iterative
Step-wise
Step
wise refinement
Revisiting steps
User involvement
V1.0
V1.0
V1.0
V1.0
Identifying Entities
Examine user requirements
Look for nouns
Look for objects that exist in their own right e.g.
Customers, staff,
Be aware of synonyms and homonyms
V1.0
V1.0
V1.0
V1.0
V1.0
Manager
Goods
Suppliers
pp
Item
Customers
Order
Order form
Delivery
Vans
V1.0
V1.0
V1.0
Relationship
Entity
Items
Have
Suppliers
Orders
Contain
Items
V1.0
Add Multiplicity
Entity
V1.0
V1.0
Multiplic
ity
Relationship
Multiplici
ty
Entity
Items
Have
0...*
Suppliers
Od
Orders
1 *
1...*
C t i
Contain
0 *
0...*
It
Items
V1.0
Description
Data type
Domain
CustomerID
Unique ID for
customer
Char
CustomerSurname
Customers
surname
Char
CustomerType
Specifies if
customer is private
or a company
Char
CustomerSex
Customers sex
Char
Will be M or F
V1.0
OrderItemNo
Date
Time
13/01/11
9.55
13/01/11
9.56
13/01/11
10.01
V1.0
V1.0
OrderItemNo
Date
Time
13/01/11
9.55
13/01/11
9.56
13/01/11
10.01
V1.0
V1.0
OrderItemNo
Date
Time
13/01/11
9.55
13/01/11
9.56
13/01/11
10.01
V1.0
V1.0
V1.0
rents
Take out this
relationship
is part of
Rental
V1.0
V1.0
V1.0
Documenting Transactions
Transaction/Table
Customer
CUD
2
3
Order
CU
V1.0
V1.0
V1.0
V1.0
Entities to Tables - 1
Decompose any many to many relationships
Order
Order
Item
OrderItem
Item
V1.0
Entities to Tables - 2
Some domains will become separate tables
If a type attributes has many values and these are
dynamic
y
then a look-up
p table to support
pp the domain
should be added.
Product_Type, Student_Type
V1.0
V1.0
V1.0
V1.0
V1.0
This is vital!
V1.0
V1.0
Learning Outcomes
By the end of this topic students will be able to:
List the steps in logical design
Give an account of the main activities that make up
logical design
Check the integrity constraints on their data model
V1.0
References
Connolly, T. and Begg, C. (2004). Database
Systems: A Practical Approach to Design,
Implementation, and Management, 4th Edition.
Addison Wesley Chapters 9 and 10
V1.0
V1.0
V1.0