DBMS1
DBMS1
• Telecom
• Industry
• Banking System
• Sales
• Airlines
• Education sector
• Online shopping
File Oriented approach:
• The traditional file oriented approach to information processing has
for each application a separate master file and its own set of personal
file.
• In file oriented approach the program dependent on the files and files
become dependent on the files and files become dependents upon
the programs.
Disadvantages of file oriented approach:
• Data redundancy
• Data inconsistency
• Difficulty in accessing data: conventional file processing system
• Data Isolation: data are scattered in various file
• Dependency on application programs
• Atomicity issues: Atomicity of a transaction refers to “All or nothing”
• Concurrent access
• Data Security
Advantage of DBMS over file system
• No redundant data
• Data Consistency and Integrity
• Data Security
• Privacy: Limited access
• Easy access to data
• Easy recovery
DBMS Level Architecture
External level
• It is also called view level. The reason this level is called “view” is because
several users can view their desired data from this level which is internally
fetched from database with the help of conceptual and internal level
mapping.
Conceptual level
• It is also called logical level. The whole design of the database such as
relationship among data, schema of data etc. are described in this level.
Internal level
• This level is also known as physical level. This level describes how the data
is actually stored in the storage devices. This level is also responsible for
allocating space to the data. This is the lowest level of the architecture.
Types of DBMS languages
Data Definition Language (DDL)
DDL is used for specifying the database schema. It is used for creating
tables, schema, indexes, constraints etc. in database. Lets see the
operations that we can perform on database using DDL:
• To create the database instance – CREATE
• To alter the structure of database – ALTER
• To drop database instances – DROP
• To delete tables in a database instance – TRUNCATE
• To rename database instances – RENAME
• To Comment – Comment
Data Manipulation Language (DML
DML is used for accessing and manipulating data in a database. The
following operations on database comes under DML:
• A key attribute can uniquely identify an entity from an entity set. For
example, student roll number can uniquely identify a student from a
set of students.
Composite attribute
1. One to One
2. One to Many
3. Many to One
4. Many to Many
One to One Relationship
One to Many Relationship
Many to One Relationship
Many to Many Relationship
Total Participation of an Entity set
• A Total participation of an entity set represents that each entity in
entity set must have at least one relationship in a relationship set.
ER example
• In a university, a Student enrolls in Courses. A student must be
assigned to at least one or more Courses. Each course is taught by a
single Professor. To maintain instruction quality, a Professor can
deliver only one course.
• Student
• Course
• Professor
• Step 2) Relationship Identification
• Step 2) Relationship Identification