Unit-1 INTRODUCTION TO DBMS
Unit-1 INTRODUCTION TO DBMS
Course Objectives
Data
Information
Data Base
Management System
Definition of DBMS
It is a collection of inter-related data and set of
programs to store and access those data in an
easy and efficient manner.
Purpose of Database System
The main purpose of database systems is to
manage the data.
No redundant data
Data consistency and integrity
Data Security
Privacy
Easy access to data
Easy recovery
Flexible
Disadvantages of DBMS
Increased Cost
Complexity
Performance
View of Data
Levels of Abstraction
Physical level describes how data is
actually stored.
Logical level describes what data is stored in
database, and the relationships among the data.
View level describes user interaction with
database system.
Instances and Schemas
Instance : The data stored in database at a particular
moment of time.
Requirement analysis
Conceptual database design
Logical database design
Schema refinement
Physical database design
Security design
Phases in Database Design
Data Models
Definition: Data modelling is a mean
of modelling data i.e to give a shape
to the data.
A data model makes it easier to
understand the meaning of data by its
figure.
Types of Data Models
Object based logical model: These models
are used in describing data at logical and view
level.
Record based logical model: Describes
data at logical and view level, and it stores data in
the form of records.
Physical data model: Gives description of
data at lowest level and describes about the
storage of data in low level data structures.
Types of Object based logical
model
Entity Relationship model
Network model
Hierarchical model
Types of Physical data
models
Unifying model
Works
employee for project
Degree of relationship
1. Unary relationship
2. Binary relationship
3. Ternary relationship
Cardinality constraints/
Mapping cardinalities/Relationship
constraints
1 1
person has passport
One to Many Relationship
1 M
HAVE Mobile
Customer
numbers
Many to One Relationship
M 1
student study
College
Many to Many Relationship
M M
enroll
student ed courses
Additional features OF ER MODEL
Key Constraints
Participation Constraints
Class Hierarchies
It is a method of classifying entities into
subclasses.
Two ways of representing class hierarchies:
Specialization
Generalization
DBMS Specialization
Aggregation
In aggregation, the relation between two entities
is treated as single entity.
Conceptual design with ER Model
Should a concept be modelled as an entity or
attribute?
Should a concept be modelled as an entity or
relationship?
Should we use binary or ternary relationship?
Should we use aggregation?
Conceptual design for large
enterprises
For a large enterprise, the design may require the
efforts of more than one designer and span data
and application code used by number of user
groups.
An alternative approach is to develop separate
conceptual schemas for different user groups and
then integrate these conceptual schemas.