Professional Documents
Culture Documents
Database Design Methodology
Database Design Methodology
Methodology
What is a design methodology?
• Design methodology is an approach taken in designing or building
things and it serves as a guideline on how things are done.
• Normally a design methodology is broken down into phases or stages
and for each phase the detailed steps are outlined, and appropriate
tools and techniques are specified.
• A design methodology is able to support and facilitate designers in
planning, modeling, and managing a database development project in
a structured and systematic manner.
• The methodology consists of three main phases, starting with
conceptual, then logical and lastly the physical database design
phase.
Among the key elements that need to be identified for a conceptual model include:
• entity types,
• relationship types,
• attributes and attribute domains,
• primary and alternate keys, and
• integrity constraints.
Step 1.1: Identify Entity Types
Identifying the main objects also referred to as entity types, which are required for the
model, is the first step to be performed. This information can be obtained from the
user’s requirement specification.
Use of ER diagram helps to visualise the relationship and the model more effectively.
Entities
Customer, Employee, Product, Order, Invoice, Delivery, Supplier
Relationships
• Between Customer and Order : Customer makes Order
• Between Product and Order : Order has Product
• Between Supplier and Product : Supplier supplies Product
• Between Order and Invoice : Order has Invoice
• Between Employee and Order : Employee takes Order
• Between Order and Delivery : Order sends for Delivery
Step 1.3: Identify and Associate Attributes with Entity or Relationship Types
After identifying the entity and relationship types, the next step is to identify their
attributes.
simple or composite
single or multi-valued
Multi valued Attributes : An attributes that may have multiple values for the same
entity is known as multi valued attributes. For example colors of a car entity. E.g. Email
Id, Phone Number
Non Key Attributes : These are attributes other than candidate key attributes in a table.
For example Firstname is a non key attribute as it does not represent the main
characteristics of the entity.
For our example, the list of attributes for the defined entities is as follows:
The common checking for the redundancy is to re-evaluate the 1:1 relationship.
If the entities in the relationship are similar, then we need to merge them together as
one entity, and may need to redefine the primary key.