Database Development and Data Modeling
Database Development and Data Modeling
Unit -3
Database Development and
Data Modeling
Asif Sohail
University of the Punjab
Punjab University College of Information Technology (PUCIT)
Maintenance
Types of Data Models
1. Conceptual Data Model refers to the way data is organized, documented, and defined within a
database.
• It defines WHAT the system contains?
• It identifies entities, their attributes and their relationships (E-R Model).
2. Logical or Representational Data Models
• Defines HOW the system should be implemented regardless of the DBMS.
• Define the structure of data elements and the relationships between them.
a) Hierarchical Data Model
b) Network Data Model
c) Relational Data Model
3. Internal Data Model
• Describes the database specific implementation of the data model
Create table Product (
Prod-Id Character(6) PRIMARY KEY,
Prod-Name Character(30), …);
4. Physical Data Model
• Describes the way data is stored on storage media
• It requires the definition of both the storage devices and access methods.
Database Systems Slide 4
Database Development Life Cycle
• It is important to recognize that the stages of the
database development life cycle are not strictly
sequential, but involve some of amount of repetition
of previous stages through feedback loops.
• For example, problems encountered during database
design may necessitate additional requirements
collection and analysis.
Choose DBMS
Implement System
Test System
Operational Maintenance
Database Systems Slide 6
System Models
• Webster’s Dictionary defines model as a “description or analogy used
to visualize something that cant be directly observed”.
• Models are abstraction of a more complex real-world object or event.
• The System models are the graphical representation of a System.
• Models are more understandable than detailed natural language
description of the system.
• Model is an effective communication tool use for communication with
different stakeholders of the system as per their needs.
• Models are an abstraction of the system. It leaves out details.
• Models are helpful for:
– Testing a physical entity before building it
– Communication with the customer
– Visualization
– Reduction of Complexity
– Concept building and understanding
Database Systems Slide 7
Data Modeling
• A data model is a relatively simple representation, usually graphical,
of more complex real-world data structures.
• A data model is an integrated collection of concepts for describing
and manipulating data, relationships between data, and constraints
on the data in an organization.
• It is the first step in designing a database.
• It is unlikely to create a good database without first selecting an
appropriate data model.
• It is the process of creating the logical structure of the database.
• Two main purposes of data modeling are to assist in the
understanding of the data (semantics of data) and to facilitate
communication about information requirements.
• Data Models are governed by the business rules of an organization.
• A business rule is a brief and precise description of policy or principle
of an organization.
Database Systems Slide 8
Components of Data Models
• A data model has the following three components:
1. Structural Part: How the data are structured?
2. Manipulative Part: Defines the types of operations that are
allowed on the data. This includes the operations that are
used for updating or retrieving data and for changing the
structure of the database.
3. Integrity Constraints. Defines the checks that are used to
ensures correctness of data.
• The basic building blocks of all the data models are entities,
attributes, relationships and constraints that are determined on
the basis of business rules of an organization.
Name* Mobile_NumberO
Address Area
EMPLOYEE
City
Phone_No
STUDENT
EMPLOYEE
Base
Derived
Attribute
Attribute
Date_Employed Years_Employed
Assistant Professor
University of the Punjab
Punjab University College of Information Technology (PUCIT)
Allama Iqbal (Old) Campus, Anarkali
Lahore, Pakistan
Tel: +92-(0)42-111-923-923 Ext. 154
E-mail: [email protected]