0% found this document useful (0 votes)
110 views8 pages

Conceptual Database Design Overview

Uploaded by

dillasemera2014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views8 pages

Conceptual Database Design Overview

Uploaded by

dillasemera2014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Unity University Fundamentals of Database Management system

Chapter 3: Conceptual Database Design


Introduction to Database Design
Database design is the process of coming up with different kinds of specification for
the data to be stored in the database. The database design part is one of the middle
phases we have in information systems development where the system uses a
database approach. Design is the part on which we would be engaged to describe
how the data should be perceived at different levels and finally how it is going to be
stored in a computer system.
Information System with Database application consists of several tasks which
include:
 Planning of Information systems Design
 Requirements Analysis,
 Design (Conceptual, Logical and Physical Design)
 Testing
 Implementation
 Operation and Support
From these different phases, the prime interest of a database system will be the
Design part which is again sub divided into other three sub-phases.
These sub-phases are:
1. Conceptual Design
2. Logical Design, and
3. Physical Design
 In general, one has to go back and forth between these tasks to refine a database
design, and decisions in one task can influence the choices in another task.
 In developing a good design, one should answer such questions as:
 What are the relevant Entities for the Organization?
 What are the important features of each Entity?
 What are the important Relationships?
 What are the important queries from the user?
 What are the other requirements of the Organization and the Users?

The Three levels of Database Design


Conceptual Design

Logical Design

Physical Design

Chapter 3: Conceptual Database Design 1


Unity University Fundamentals of Database Management system

Conceptual Database Design


 Conceptual design is the process of constructing a model of the information used
in an enterprise, independent of any physical considerations.
 It is the source of information for the logical design phase.
 Mostly uses an Entity Relationship Model to describe the data at this level.
 After the completion of Conceptual Design one has to go for refinement of the
schema, which is verification of Entities, Attributes, and Relationships.
Logical Database Design
 Logical design is the process of constructing a model of the information used in
an enterprise based on a specific data model (e.g. relational, hierarchical or
network or object), but independent of a particular DBMS and other physical
considerations.
 Normalization process
 Collection of Rules to be maintained.
 Discover new entities in the process.
 Revise attributes based on the rules and the discovered Entities
Physical Database Design
 Physical design is the process of producing a description of the implementation
of the database on secondary storage, defines specific storage or access methods
used by database
 Describe the storage structures and access methods used to achieve
efficient access to the data.
 Tailored to a specific DBMS system, characteristics are function of DBMS
and operating systems.
 Includes estimate of storage space

Conceptual Database Design


 Conceptual design revolves around discovering and analyzing organizational and
user data requirements.
 The important activities are to identify
 Entities
 Attributes
 Relationships
 Constraints
 And based on these components develop the ER model using ER diagrams

The Entity Relationship (E-R) Model


 Entity-Relationship modeling is used to represent conceptual view of the
database.
 The main components of ER Modeling are:

Chapter 3: Conceptual Database Design 2


Unity University Fundamentals of Database Management system

 Entities
 Corresponds to entire table, not row.
 Represented by Rectangle
 Attributes
 Represents the property used to describe an entity or a relationship
 Represented by Oval
 Relationships
 Represents the association that exist between entities
 Represented by Diamond
 Constraints
 Represent the constraint in the data
Before working on the conceptual design of the database, one has to know and
answer the following basic questions.
 What are the entities and relationships in the enterprise?
 What information about these entities and relationships should we store in the
database?
 What are the integrity constraints that hold? Constraints on each data with
respect to update, retrieval and store.
 Represent this information pictorially in ER diagrams, then map ER diagram into
a relational schema.

Developing an E-R Diagram


 Designing conceptual model for the database is not a one linear process but an
iterative activity where the design is refined again and again.
 To identify the entities, attributes, relationships, and constraints on the data,
there are different set of methods used during the analysis phase.
 These include information gathered by…
 Interviewing end users individually and in a group
 Questionnaire survey
 Direct observation
 Examining different documents
 The basic E-R model is graphically depicted and presented for review.
 The process is repeated until the end users and designers agree that the ER
diagram is a fair representation of the organization’s activities and functions.
 Checking the Redundant Relationships in the ER Diagram. Relationships between
entities indicate access from one entity to another - it is therefore possible to
access one entity occurrence from another entity occurrence even if there are
other entities and relationships that separate them - this is often referred to as
Navigation' of the ER diagram

Chapter 3: Conceptual Database Design 3


Unity University Fundamentals of Database Management system

 The last phase in ER modeling is validating an ER Model against requirement of


the user.

Graphical Representations in ER Diagramming


 Entity is represented by a RECTANGLE containing the name of the entity.
Strong Entity Weak Entity

 Connected entities are called relationship participants.


 Attributes are represented by OVALS and are connected to the entity by a line.

CompositAttribute
Composite Attribute
Attribute Multi-Valued Attribute

 A derived attribute is indicated by a DOTTED LINE. (………)


Key
Attribute Multi-Valued Attribute Composite Attribute

 PRIMARY KEYS are underlined.


Key

 Relationships are represented by DIAMOND shaped symbols


 Weak Relationship is a relationship between Weak and Strong Entities.
 Strong Relationship is a relationship between two strong Entities

Strong RelationShip Weak RelationShip


Example 1: Build an ER Diagram for the following information:
 A student record management system will have the following two basic data object
categories with their own features or properties. Students will have an Id, Name,
Dept, Age, GPA and Course will have an Id, Name, Credit Hours
 Whenever a student enroll in a course in a specific Academic Year and
Semester, the Student will have a grade for the course

Chapter 3: Conceptual Database Design 4


Unity University Fundamentals of Database Management system

ID Name Dept DoB Credit


ID Name
GPA
Student Course

Age
Enrolled_in

Acedamic_year Semeste
Grade r

Example 2: Build an ER Diagram for the following information:


 A Personnel record management system will have the following two basic data
object categories with their own features or properties. Employee will have an Id,
Name, DoB, Age, Tel and Department will have an Id, Name, Location
 Whenever an Employee is assigned in one Department, the duration of his
stay in the respective department should be registered.

Structural Constraints on Relationship


1. Constraints on Relationship / Multiplicity/ Cardinality Constraints
 Multiplicity constraint is the number or range of possible occurrence of an entity
type/relation that may relate to a single occurrence/tuple of an entity
type/relation through a particular relationship.
 Mostly used to insure appropriate enterprise constraints.

One-to-one relationship
 A customer is associated with at most one loan via the relationship borrower
 A loan is associated with at most one customer via borrower

Chapter 3: Conceptual Database Design 5


Unity University Fundamentals of Database Management system

E.g. Relationship Manages between Staff ands Branch


 The multiplicity of the relationship is:
 One branch can only have one manager.
 One Employee could Manages either one or no branches.

1..1 0..1
Employee Manages Branch

One-To-Many Relationships
 In the one-to-many relationship a loan is associated with at most one customer
via borrower, a customer is associated with several (including 0) loans via
borrower

E.g. Relationship Leads between Staff and Project.


 The multiplicity of the relationship:
 One staff may lead one or more.
 One project is leaf by one staff.

Chapter 3: Conceptual Database Design 6


Unity University Fundamentals of Database Management system

1..1 0..*
Employee Leads Project

Many-To-Many Relationship
 A customer is associated with several (possibly 0) loans via borrower.
 A loan is associated with several (possibly 0) customers via borrower.

E.g.: Relationship Teaches between Instructors and Course.


 The multiplicity of the relationship
 One Instructor teaches one or more Course(s).
 One course thought by zero or more Instructor(s).

0..* 0..*
Instructor Teaches Course

Chapter 3: Conceptual Database Design 7


Unity University Fundamentals of Database Management system

Chapter 3: Conceptual Database Design 8

Common questions

Powered by AI

An ER diagram is validated against user requirements by ensuring that it accurately depicts the organization's activities, constraints, and functions through iterative refinements involving user feedback. During validation, both designers and end users review the diagram to confirm it represents the necessary data and relationships adequately. Redundancy is a concern because it can lead to inefficiencies and potential inconsistencies in data storage and retrieval. Identifying redundant relationships helps streamline the ER model, ensuring it is both efficient and effective in meeting the organization’s needs .

In ER modeling, attributes represent the properties used to describe an entity or relationship. They are represented by ovals connected to entities by lines. Types of attributes include simple and composite attributes, where composite attributes are made up of multiple components. Multi-valued attributes can have multiple values for an entity, and derived attributes have values calculated from other attributes and are depicted with dotted lines. When mapping an ER diagram into a relational schema, simple attributes directly translate to table columns, composite attributes are broken down into separate columns, multi-valued attributes create additional related tables, and derived attributes may not be stored directly but calculated as needed, influencing the database normalization and table structure .

The choice of storage structures and access methods in the Physical Database Design phase is determined by the characteristics of the DBMS and the operating systems, as well as performance requirements, space considerations, and access frequency. This phase contributes to database performance by optimizing how data is stored and accessed, ensuring efficient data retrieval and storage, minimizing latency, and managing disk space effectively. Tailoring these factors to the specific DBMS enables improved data processing speed and system responsiveness, which are critical for high-performance databases .

The primary sub-phases of database design are Conceptual Design, Logical Design, and Physical Design. These phases interact with each other through an iterative process of refinement, where decisions in one phase affect the other phases. Conceptual Design focuses on constructing a model of the information used in an enterprise independent of physical constraints, mainly using Entity Relationship Models. Logical Design constructs a model based on a specific data model but remains independent of any particular DBMS. Physical Design involves creating a description of the database implementation on secondary storage and is tailored to a specific DBMS system .

The Entity Relationship (E-R) Model facilitates Conceptual Database Design by providing a structured way to represent the conceptual view of the database through graphical depictions. Its main components include Entities, which represent entire tables and are depicted as rectangles; Attributes, which describe an entity or relationship and are depicted as ovals; Relationships, which indicate associations between entities and are depicted as diamonds; and Constraints, which represent constraints in the data .

Multiplicity constraints define the number or range of occurrences of an entity that can relate to a single occurrence of another entity through a particular relationship. They are crucial for ensuring that database relationships reflect enterprise constraints accurately. For example, in a one-to-one relationship such as between a customer and a loan, one customer is associated with at most one loan and vice versa. In a one-to-many relationship, such as a customer and their loans, a customer can have multiple loans, but each loan is associated with only one customer. These constraints ensure data integrity and enforce business rules in the database design .

Techniques used to gather information for developing an ERD include interviewing end users individually and in groups, conducting questionnaire surveys, direct observation, and examining documents. It is important to validate the ERD with end users to ensure it accurately represents the organization's activities and meets user requirements. This validation is achieved through iterative review and refinement until consensus is reached that the ERD is a fair representation of the organizational functions .

Integrity constraints in database design are essential as they enforce rules that maintain the accuracy and consistency of data within the database. Examples of such constraints include primary key constraints, which ensure each record is uniquely identifiable; foreign key constraints, which enforce referential integrity between related tables; and domain constraints, which ensure data entries fall within specific allowable ranges or formats. These constraints prevent invalid data entries, thus preserving the logical accuracy and reliability of the database's information .

Normalization in Logical Database Design plays the role of organizing data to minimize redundancy and dependency by dividing the database into tables and defining relationships. It contributes to the refinement of discovered entities and attributes by systematically applying normalization rules, such as removing duplicate data and ensuring data dependencies make sense to enhance data integrity. This process often leads to the discovery of new entities and helps in revising attributes for consistency and effectiveness in representing organizational data .

Conceptual Database Design involves constructing a high-level, abstract model of the data independent of technology constraints, usually represented with ER diagrams to understand entities, relationships, and constraints. Logical Database Design takes this abstract model and represents it using a specific data model (e.g., relational, object-oriented) while ensuring compliance with business rules, often employing normalization techniques. Physical Database Design converts the logical design into technical specifications for data storage and access tailored to a specific database management system, addressing performance, storage, and retrieval concerns. Each phase addresses progressively more technical aspects, moving from a theoretical understanding to practical implementation .

You might also like