Documente Academic
Documente Profesional
Documente Cultură
Introduction to
Database Systems
Mohammad Imran
Lecturer
Department of Information Technology
Balochistan University of Information Technology, Engineering & Management Science
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 1
Balochistan University of Information Technology, Engineering & Management Sciences
Lecture 2
Database Design &
Data Modeling
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 2
Balochistan University of Information Technology, Engineering & Management Sciences
Database Modeling
• Database design focuses on how the database structure
will be used to store and manage end-user data
• Database Modeling is first step in designing a database
• Process of creating a specific data model for a determined
problem domain
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 4
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015
Balochistan University of Information Technology, Engineering & Management Sciences
Business Rules
• Descriptions of policies, procedures, or principles within a
specific organization
o Apply to any organization that stores and uses data to
generate information
o Must be in written form and kept up to date
o Must be easy to understand and widely disseminated
• Describes characteristics of data as viewed by the
company
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015
Balochistan University of Information Technology, Engineering & Management Sciences
Naming Conventions
• Naming occurs during translation of business rules to data
model components
• Names should make the object unique and distinguishable
from other objects
• Names should also be descriptive of objects in the
environment and be familiar to users
• Proper naming:
o Facilitates communication between parties
o Promotes self-documentation
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 12
Balochistan University of Information Technology, Engineering & Management Sciences
Conceptual Model
• A conceptual data model identifies the highest-level
relationships between the different entities
• Features of conceptual data model include:
o Important entities and the relationships among them
o No attribute is specified
o No primary key is specified
• It is input for Logical Data Model
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 13
Balochistan University of Information Technology, Engineering & Management Sciences
Conceptual Model
• Represents a global view of the entire database by the
entire organization
• Also known as a conceptual schema
• The most widely used conceptual model is the ER
model
• Remember that the ER model is illustrated
with the help of the ERD, which is effectively
the basic database blueprint
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 14
Balochistan University of Information Technology, Engineering & Management Sciences
Conceptual Model
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 15
Balochistan University of Information Technology, Engineering & Management Sciences
Logical Model
• Describes the data in as much detail as possible, without
concerning how they will be physical implemented in the
database
• Features of a logical data model include:
o Includes all entities and relationships among them
o All attributes for each entity are specified
o The primary key for each entity is specified
o Foreign keys (keys identifying the relationship between
different entities) are specified
o Normalization occurs at this level
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 16
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 17
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 18
Balochistan University of Information Technology, Engineering & Management Sciences
19
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 19
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 22
Balochistan University of Information Technology, Engineering & Management Sciences
23
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 23
Balochistan University of Information Technology, Engineering & Management Sciences
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015 24
Balochistan University of Information Technology, Engineering & Management Sciences
Thank you
25
Introduction to Database Systems Spring 2015 Mohammad Imran April 13, 2015