Database Management System
Database Management System
TO
Database Management System
Database Management System
What is a
DataBase
Management
System?
Database Management System
Before Computerization the data/information was
available only in the paper/documents.
The need to store massive data and retrieve it faster
necessitated Computerization.
Thus lot of efforts were put in to automate the manual
working into automation.
Database Management System
Why Computerized Database ?
Manual System is:
- Tedious
- Time Consuming
- Error Prone
- Illegible
Database Management System
Advantages of Computerization
-Minimizations of Errors
- Saving of Time in processing/working
- Availability of data at one place
- Legible -Reports are presentable
Database Management System
Definition:
A collection of information that has been systematically
organized for easy access and analysis. Databases
typically are computerized.
An organized collection of records having a
standardized format and content.
For example, a Telephone Directory is a database of
Telephones with names and Addresses.
Computerized indexes and catalogs are two of the most
common types of databases in libraries.
Database Management System
Some More Definitions:
A collection of electronic records having a standardized
format and using specific software for accessing the
data/record.
Why do we need
Database?
Database Management System
If there is no Database :
1. Data will be scattered
2. Data is not cohesive – may be having different formats
3. Data is duplicated
4. Data Integrity is not possible
5. Data has big risk
Database Management System
To put them together a Database is needed
which will have:
- Database
- Tables
-Records
- Fields
Database Management System
Data Types commonly used:
- Numeric
- Alphanumeric
- Date
- Logical
- Memo
Database Management System
Numeric – This data type specifies that the field can contain
only numbers.The numbers could be:
- Whole Number e.g. 2,55,999 etc.
- Real number e.g. 23.75,49.55 etc.
Alphanumeric- A combination of alphabets, numbers and
special characters like hyphen etc. may be stored in
this field. The data could be of following types:
- Numbers - 0 to 9
- Alphabets – A to Z, a to z
- Special Characters - !@#$%* etc.
Database Management System
Date – In this field only date can be stored. The date may
have different formats. Some databases
provide Time also along with the date format.A
data type that can handle date and time may have
following :
Date – Day
- Month
- Year
Time – Hour
- Minute
- Second
Database Management System
Logical – This field can contain only True/false or Yes/No i.e.
The field can contain only logical value.This data type
is also known as Boolean.
Memo – This field can contain large amount of data e.g. 100/
200/500 words. It can have alphanumeric data, but this
can be used only for comment purposes.No manipulation
on this field is possible.
Database Management System
Specifying the Field Size:
Along with the Data type for a field, we also
need to specify the field size.Specifying the
size means that the maximum data of a
particular data type that can be stored in the
field.
Database Management System
Size Description Actual Size
Indicator (in Bytes)
-Adding records
- Querying
- Modifying Records
- Deleting Records
Database Management System
Data Manipulation:
Creating a table involves the following:
- Specifying field names for different fields
- Specifying data types for the different fields
- Specifying field sizes for the different fields
Classification
and
Types of Databases
Database Management System
The Databases may be classified as:
Advantages
of
Databases
Database Management System
The main Advantages of a Database
are:
• Reduction in data redundancy
• Maintenance of data integrity and quality
• Data are self-documented or self-
descriptive
• Avoidance of inconsistency
• Reduced cost of software development
• Security restrictions
Database Management System
Database Management System
View of the Database
• The database can present different views of itself to
users, programmers and the database administrator.
• The internal data representation (internal view) is
normally not seen by the user or applications programmer.
• The conceptual view or conceptual schema is the primary
means by which the DBA builds and manages the data
base.
• The DBMS can present multiple views of the conceptual
schema (external views) to programmers and users,
depending on the application.
Database Management System
Advantages of RDBMS
• Accessibility:
Ad hoc Data access using query languages (such as SQL)
means that queries can be automatically compiled,
executed, and optimised without resorting to programming
• Correctness:
The semantics of the relational algebra are sound and
complete
Database Management System
• Flexibility:
The relational model separates the logical from the
physical model and this decoupling increases
flexibility .
• Integrity:
Constraints helpful in ensuring that structural changes
did not adversely effect the meaning of the database
Database Management System
• Predictability:
The consistent semantics enables users to easily
anticipate the result of a given query
• Multiple views:
It is straightforward to present different user
groups different views of the same database
• Concurrency Control and Transaction
Management
• Backup and Recovery
• Security
Database Management System
There are three main features of a database
management system that make it attractive to
use a DBMS in preference to other systems.
These features are:
• Centralised data management,
• Data independence
• Systems integration.
Database Management System
A word about SQL(Structured Query Language)
SQL allows users to access data in relational database
management systems, such as Oracle, Sybase,
Informix, Microsoft SQL Server, Access etc.
SQL also allows users to define the data in a database,
and manipulate that data.
Database Management System
SQL consists of a number of keywords and a number of key
concepts. Each of the following sections focuses on one keyword
or concept:
• Select …. From
• Where
• Functions
• Count
• Group by
• Having
• Alias
• Joins
Database Management System
Disadvantages
of
Databases
Database Management System
While database gives lot of benefits/ advantages,
there are always some weaknesses because of
which there are are some possible disadvantages:
Confidentiality, Privacy and Security
When information is centralized and is made available to users
from remote locations, the possibilities of abuse are often more
than in a conventional system. To reduce the chances of
unauthorized users accessing sensitive information, it is
necessary to take technical, administrative and, possibly, legal
measures. Databases store valuable information that must be
protected against deliberate trespass and destruction.
Database Management System
Data Quality
Since the database is accessible to users remotely, adequate
controls are needed to control users updating data and to control
data quality. With increased number of users accessing data
directly, there are chances for users to damage the data. Unless
there are suitable controls, the data quality may be compromised.
Database Management System
Data Integrity
Since a large number of users would be using a database
concurrently, technical safeguards are necessary to ensure that
the data remain correct during operation. The main threat to data
integrity comes from several different users attempting to update
the same data at the same time. The database therefore needs to
be protected against inadvertent changes by the users.
Database Management System
Enterprise Vulnerability
Centralizing all data of an enterprise in one database may
mean that the database becomes an indispensable resource.
The survival of the enterprise may depend on reliable
information being available from its database. The enterprise
therefore becomes vulnerable to the destruction of the
database or to unauthorized modification of the database.
Database Management System
The Cost of using a DBMS
Conventional data processing systems are typically designed to
run a number of well-defined, preplanned processes. Such
systems are often "tuned" to run efficiently for the processes that
they were designed for. Although the conventional systems are
usually fairly inflexible in that new applications may be difficult to
implement and/or expensive to run, they are usually very efficient
for the applications they are designed for.
Database Management System
Limitations
of
Databases
Database Management System
There are some limitations to the Relational
database management system.
1. RDBMS do not have enough storage area to handle
data such as images, digital and audio/video.
The system was originally created to handle the
integration of media, traditional fielded data, and
templates.
2. RDBMS does not support any other language except
SQL.
Database Management System
3. The new Programming languages e.g. C++, java
Script etc. do not work very efficiently with the
RDBMS.
What
is
Data
Warehousing?
Database Management System
Data Warehousing
Definition
•A data warehouse can be defined as any centralised data
repository which can be queried for business benefit
•warehousing makes it possible to
- Extract archived operational data
- Overcome inconsistencies between different legacy
data formats
- Integrate data throughout an enterprise, regardless of
location, format, or communication requirements
- Incorporate additional or expert information
Database Management System
Characteristics of a data warehouse as
defined by Bill Inmon (IS guru)
• Subject-oriented - data organized by subject instead of
application e.g.
- an insurance company would organize their data by
customer, premium, and claim, instead of by different
products (auto, life, etc.)
- contains only the information necessary for decision support
processing
Database Management System
Thank You