DBMS Lecture 1
DBMS Lecture 1
Faculty Details:
Dr. Sonika Dahiya
Assistant Professor
CSE Department, DTU
DBMS
Syllabus
DBMS
Basic topics
• De nition
• File Processing System & Drawbacks of File Processing System
• Database Users
• Database Applications
• Database Architecture
• Database Languages
• View of Data
• Data Models
• Data Independence
fi
DBMS (DataBase Management System)
De nition
• DB + MS = DBMS
• DB (Database) is a collection of interrelated data containing information
relevant to an enterprise.
• Drawbacks:
• Data redundancy & Inconsistency
• Di culty in Accessing Data
• Data Isolation
• Integrity problem
• Atomicity Problem
• Concurrent Access Anomalies
• Security problems
ffi
fi
fi
ff
Data Models
•
• ER Model
• Relational Model
• Object Oriented Model
• Semi-Structured Model
• Network Model
• Hierarchical Model
Data Models
•
Data Abstraction
• Instance & Schema :- The collection of information stored in the database at a particular
moment is called an instance of the database. The overall design of the database is called
the database schema.
• Physical Schema
• Logical Schema
• Subschema
• Database systems have several schemas, partitioned according to the levels of ab- straction.
The physical schema describes the database design at the physical level, while the logical
schema describes the database design at the logical level. A database may also have several
schemas at the view level, sometimes called subschemas, that describe di erent views of
the database.
ff
Database Languages
DDL & DML
• the storage structure and access methods used by the database system are
speci ed by a set of statements in a special type of DDL called a data storage
and de nition language.
• Procedural DMLs require a user to specify what data are needed and how to get those data.
A query is a statement requesting the retrieval of information. The portion of a DML that involves information retrieval
is called a query language. Although technically incorrect, it is common practice to use the terms query language
and data-manipulation language synonymously.
fi
Database Architecture
Database Users
There are four di erent types of database-system users, di erentiated by the way they expect to interact with the
system.
1. Naive users
2. Application Programers
3. Sophisticated Users
4. Database Administrator : A person who has such central control over the system is called a database
administrator (DBA). The functions of a DBA include:
• Schema de nition.
• Storage structure and access-method de nition
• Schema and physical-organization modi cation
• Granting of authorization for data access
• Routine maintenance
fi
ff
fi
fi
ff
Database Languages
DDL & DML
data-manipulation language (DML): A data-manipulation language (DML) is a language that enables users to
access or ma- nipulate data as organized by the appropriate data model. The types of access are:
• Procedural DMLs require a user to specify what data are needed and how to get those data.
A query is a statement requesting the retrieval of information. The portion of a DML that involves information retrieval
is called a query language. Although technically incorrect, it is common practice to use the terms query language
and data-manipulation language synonymously.
fi