RDBMS 12
RDBMS 12
MANAGEMENT
SYSTEM
(RDBMS)
Prepared by
Muhammad Ashfaq Najar
⚫File System
⚫Database
File System
⚫A File System is a type of
data store, Which can be used to store,
retrieve and update a set of file.
⚫A File System, data is directly stored in set of files.
It contains flat files that have no relation to other
files.
Disadvantages of File System
⚫ Data Redundancy
⚫ Data Inconsistency
⚫ Difficulty in Accessing
Data
⚫ Data Isolation
⚫ Integrity Problem
⚫ Atomicity Problem
⚫ Concurrent Access
Anomalies
⚫ Security Problem
Database
⚫A database is an organized collection of data,
generally stored and accessed electronically from
a computer system.
⚫The database management system (DBMS)
⚫is the software that interacts with end users,
applications, and the database itself to capture and
analyze the data.
Organization of Database
Database
Table
Record
Field
Characters
Characters
⚫ A byte of typically 8 bits.
⚫ Each byte represent an characters.
⚫ A Characters can be an Upper Case(A,B,C…..Z),
Lower case(a,b,c,…..z), Numeric digit(0,1,2,….9) are
Special Symbol(.,!,[+],[-]./,…..).
Field
⚫ Character can be combined to form a field.
⚫ Field is a single piece of information.
⚫ It is defined as the smallest unit in a database.
⚫ Eg:
⚫ Roll No
⚫ Name
⚫ Date of Birth
⚫ Sex
⚫ Address
Roll Name Date of Sex Address
Number Birth
20MC001 Aarthi 22.02.1999 Female Salem
One to One
One to Many
Many to Many
Sub-Schema
⚫ The term sub-schema refers to the same view but for the
data item types and record types which a particular user
uses in a particular application.
Relational Hierarchical
Model Model
Object -Oriented
Model
Relational Model
⚫ This model represent data and relationship
among data by a collection of tables known as
relationship.
⚫ A number of columns unique names.
⚫ Relationship model relate records by the value
that
contain.
Advantage:
• Easy to use
• Flexibility
• Precision
• Security
• Data Independence
Relational Database Management System(RDBMS)
⚫ A DBMS is software designed to assist in
maintaining and utilizing large collection of
data.
⚫ DBMS provides an environment that is both
convenient and efficient to use.
⚫ A DBMS is a combination of hardware and
software that can be used to setup and monitor
a database and manage the updating and
retrieval of database.
⚫ Microsoft access.
⚫ SQL Server
⚫ Oracle
⚫ mongoDB
⚫ PostgreSQL
Objective of RDBMS
Shareability :
⚫ An ability to share data resources is a fundamentals objective
of RDBMS.
⚫ The different people and different processes using the
same actual data at virtually the same time.
Availability:
⚫ It means the data of an organization to the user of that
data.
⚫ The system which manage the data resource should be
easily accessible to the
people within an organization.
Evolvability:
⚫ It refers to the ability of the R DBMS to change in
response to growing user
needed and advising technology.
Integrity
⚫ Protecting the extension of the database.
⚫ Maintaining the quality of the database.
Advantages Of DBMS:
⚫ Redundancy can be reduced.
⚫ Inconsistency can be avoided.
⚫ Data can be shared.
⚫ Standard can be enforced.
⚫ Security can be applied.
⚫ Integrity can be maintained.
Database Application:
⚫ Airlines.
⚫ Education.
⚫ Banking.
⚫ Telecommunications
.
⚫ Credit card
Transaction.
⚫ E-Commerce.
⚫ Finance.
⚫ Sales.
KEYS
• Primary Key.
• Super Key.
• Candidate Key.
• Foreign Key.
• Alternate Key.
Primary Key:
⚫ A primary key is a field that uniquely
identified each record in a table.
⚫ It is a unique key.
⚫ It can identify only one tuple (a record) at a
time.
⚫ It has no duplicate values, it has unique
values.
⚫ It cannot be NULL.
Example
STUD_NO SNAME ADDRESS PHONE
Table STUDENT_COURSE
1 001 C001
2 056 C005