Professional Documents
Culture Documents
DBMS
DBMS-Introduction
• The collection of related data, is referred to as the
Database, contains information relevant to an
enterprise.
• Data isolation.
▫ Multiple files and formats.
Disadvantages
• Atomicity problems.
▫ Failures may leave database in an inconsistent state with
partial updates carried out.
▫ E.g. transfer of funds from one account to another should
either complete or not happen at all.
• Concurrent-access anomalies
▫ Uncontrolled concurrent accesses can lead to inconsistencies.
▫ E.g. two people reading a balance and updating it at the same
time.
• Integrity problems.
▫ The data values stored in the database must satisfy
certain types of consistency constraints.
• Security problems.
▫ Not every user of the database system should be able to access
all the data.
Disadvantages
▫ The above all disadvantages lead to the development
of database systems.
Advantages of DBMS
• Data Independence
Application programs should not, ideally, be
exposed to details of data representation and storage.
The DBMS provides an abstract view of the data that
hides such details.
Schema Definition
Schema and physical organization and modification
Granting of authorization of data access
Routine maintawnance
DBA [DATABASE ADMINISTRATOR]
Schema definition
• The DBA creates the original database schema by
executing a set of data definition statement in DDL.
DBA [DATABASE ADMINISTRATOR]
Schema and physical organization modification.
• SQL language.
▫ Data-definition language(DDL)-to specify the
database schema .
name
ssn Address
Employees
• Composite attribute:
The attributes that can be divided into subparts.
Eg: Name –
first_name,middle_name,last_name.
Different Types of Attributes
• Single valued:
hold a single value for a particular entity.
Eg : sid attribute for a student entity has only
one value. Not more than one value for sid is
alloted for a student.
Different Types of Attributes