Professional Documents
Culture Documents
21aim45a Dbms Module 1
21aim45a Dbms Module 1
SYSTEMS (DBMS)
21AIM45A
MODULE -1
MODULE 1:SYLLABUS
Introduction to Databases: Definition of database,
DBMS; Characteristics of Database approach;
Advantages of using DBMS approach;DBMS
Database Concept and Architecture: Data models,
schemas and instances; Data Abstraction; Three-
schema architecture and data independence;
Components of a DBMS - Database Designer-
Database Administrator-Database Users.
Introduction to Entity- Relationship Model:
Entity Types, Attributes and Keys; Relationship
types, Roles and Structural Constraints; Weak
Entity Types; ER Diagrams, Naming Conventions
and Design Issues; Relationship types of degree
higher than two; Reduction of an E-R schema to
relational Tables
CIE EVALUATION MATRIX
Properties:
The main characteristics of the database approach versus the file-processing approach
are the following:
Most DB & file environments physical details (such as exact location on disk,
h/w details of storage, placement, comparison, splitting, merging of record, etc.)
are hidden from user.
Logical data independence allows changes without affecting application
program
Physical data independence can be defined as the capacity to
change the internal schema without having to change the
conceptual schema.
If we do any changes in the storage size of the database system
server, then the Conceptual structure of the database will not be
affected.
Physical data independence is used to separate conceptual levels
from the internal levels.
Physical data independence occurs at the logical interface level.
Components of DBMS
Components of DBMS
Small personal DB – one person defines, construct & manipulate DB & no sharing occurs.
Large DB – Many people involve for design, use & maintenance of DB with 1000’s of users.
DBA(DB Admin.)
DBD(DB Designer)
End User
SE(System Analyst & Application Pgm.er)
Data Base Administrators
Categories:
Strong Entity
The following are the different symbols used to
draw ER diagrams
Entity:
An entity may be any object, class, person or place. In the
ER diagram, an entity can be represented as rectangles.
Consider an organization as an example- manager, product,
employee, department etc. can be taken as an entity.
Weak Entity
An entity that depends on another entity called a weak entity. The weak entity
doesn't contain any key attribute of its own. The weak entity is represented by a
double rectangle.
Strong Entity Type: It is an entity that has its own
existence and is independent.
The entity relationship diagram represents a strong entity
type with the help of a single rectangle. Below is the ERD of
the strong entity type:
•Total participation
•Partial Participation
Total participation
Partial Participation
Student(roll no,name,mobile,email),
Examination(Exam_id,subject,academic year,semester,date & time)
Practice :2-
Doctor(Doctor_id,name,address,ph.no)
Patient(patient _id,name,address,ph.no)
Medicine(Name,quantity,amount)
Practice :
2. COMPANY DATABASE:
EMPLOYEE (SSN, Name, Address, gender, Salary,
SuperSSN, DNo)
DEPARTMENT (DNo, DName, MgrSSN, MgrStartDate)
DLOCATION (DNo,DLoc)
PROJECT (PNo, PName, PLocation, DNo)
WORKS_ON (SSN, PNo, Hours)
Min Max notation
Min Max notation
ER Diagrams, Naming Conventions and Design Issues;
ER (Entity-Relationship)Diagram
Entity-Relationship Diagram displays the relationships
of entity set stored in a database. In other words, the ER
diagram helps to explain the logical structure of
databases. It includes many specialized symbols, and its
meanings make this model unique. The purpose of ER
diagram is to represent the entity framework
infrastructure.
Manipulation Techniques DBMS contains a wide variety The file system can't efficiently
of sophisticated techniques to store and retrieve the data.
store and retrieve the data.
Concurrency Problems DBMS takes care of Concurrent In the File system, concurrent
access of data using some form access has many problems like
of locking. redirecting the file while
deleting some information or
updating some information.
Each patient has a name, phone number, address and date of birth
a) Primary key
b) Composite attribute
c) Weak entity
d) Identifying relationship