DBMS Lecture 1
DBMS Lecture 1
Management
Chapter- 1
(Week 1 & 2)
Organizing Data in a Traditional
File Environment
1. Microsoft Access
2. FoxPro
3. dBase
Some Commercial Database
Management Software
1. CUBRID
2. Firebird
3. MariaDB
4. MongoDB
5. Postgre SQL
6. MySQL
7. SQLite
Database Systems Vs File
Systems ( Why DBMS?)
Ordinary file system has a number of major
drawbacks:
3.Data isolation
-Multiple files and formats
4.Integrity problems
- Integrity constraints (e.g. account balance
> 0) become part of program code
- Hard to add new constraints or change
existing ones.
Database Systems Vs File
Systems ( Why DBMS?)
5. 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.
Database Systems Vs File
Systems ( Why DBMS?)
6. Concurrent-access anomalies
- Needed for system performance and
usability
- Uncontrolled concurrent accesses can
lead to inconsistencies. E.g. two people
reading a balance and updating it at the
same time.
Database Systems Vs File
Systems ( Why DBMS?)
For Example:
create table customer (
customer_id varchar(10),
customer_name varchar
(35), customer_street
varchar (20),
salary number (10,2));
Data Abstraction
3. View level: The highest level of
abstraction describes only part of the entire
database. Computer users see a set of
application programs that hide details of
data types. Several views of database are
defined and users see these views. In
addition to hiding details, the views also
provide a security mechanism to prevent
users from accessing certain part of the
database.
Data Abstraction
Instances and Schemas
Schemas are:
1.Physical schema: Describes the database
design at physical level
2.Logical schema: Describes the database
design at logical level
3.View schema: Describes the database design
at view level
Instances and Schemas
Relationship: A relationship is an
association among several entities. A
depositor relationship associates a
customer with each account that he or she
has.
The set of all entities of the same type and
the set of all relationships of the same
type are termed an entity set and
relationship set, respectively
Data Models
Data Models
C. 2. Hierarchical model
Data Models
ONE-TO-ONE: STUDENT ID
CLASS
ONE-TO-MANY:
STUDENT STUDENT STUDENT
A B C
CLASS CLASS
MANY-TO-MANY:
1 2
Hierarchical DBMS: