Introduction To Database
Introduction To Database
Introduction To Database
Prepared By :
Mukhtar Qureshi
Topics To Be Covered
Introduction about Database.
Characteristics of the database approach.
Actors on the scene.
Workers behind the scene.
Introduction to DBMS.
Advantages of using a DBMS.
Implications of the database approach.
When not to use a DBMS.
Structured And Unstructured data
– Flat file = unstructured data
– Database = structured data
DBMS
Application
program
End-user
Example of a Database
(with a Conceptual Data Model)
Mini-world for the example: Part of a UNIVERSITY
environment.
Some mini-world entities:
STUDENTs
COURSEs
SECTIONs (of COURSEs)
(academic) DEPARTMENTs
INSTRUCTORs
Note: The above could be expressed in the ENTITY-
RELATIONSHIP data model.
Example of a Database
(with a Conceptual Data Model)
Some mini-world relationships:
SECTIONs are of specific COURSEs
STUDENTs take SECTIONs
COURSEs have prerequisite COURSEs
INSTRUCTORs teach SECTIONs
COURSEs are offered by DEPARTMENTs
STUDENTs major in DEPARTMENTs
Other features:
▫ Protection or Security measures to prevent
unauthorized access
▫ “Active” processing to take internal actions on data
▫ Presentation and Visualization of data
Actor on the scene
A person typically defines, constructs, and manipulates the database.
In large organization, many people are responsible in the design, use
and maintenance of a large database with hundreds of user.
We call these users as the actors on the scene.
Database Administrator.
Database Designer.
End Users.
Database Administrator
In any organization where many people use the same resources,
there is a need for a chief administrator to oversee and manage these
resources.
In a database environment, the primary resource is the database
itself, and the second resource is the DBMS and related software.
Administrating these resources is the responsibility of the database
administrator (DBA).
The DBA is responsible for authorizing access to the database, co-
ordinating and monitoring its use, and acquiring software and
hardware resources as needed.
Database Designer
Database designer are responsible for
identifying the data to be stored in the data
and for choosing appropriate structures to
represent and store this data.
These task should be done before the database
actually implemented and populated with data.
It is the responsibility of the database
designers to communicate with the end users
to know their actual requirement and to create
a database that meet their requirement.
End Users
End users are the people whose job require access to the database
for querying, updating and generating reports;
There are two kinds of end users:
Casual User:
These kinds of user occasionally access the database, but they may
need different information each time. They use database queries
query language to specify their requests.
Naive and Parametric Users:
These users are constantly querying and updating the database,
using standard type of query and updates
End Users (cont.)
Example of Naive and Parametric users are
Bank tellers check account balances and post withdrawals and
deposits.
Reservation clerks for airlines, hotels, and cars rental companies
check availability for a given request and make reservations.
Sophisticated End Users:
It include engineers, scientist, business analyst who are familiar
with the DBMS in order to implement their applications.
Standalone Users:
Maintain personal database by using ready-made-program packages
that helps them through graphical representation.
Workers Behind the Scene
DBMS system designers and implementers:
These people design and implement the DBMS module and interfaces as
a software packages.
A DBMS consist of complex components or modules for implementing
the catalogue, processing query language, controlling concurrency and
handling data recovery and security.
Tool Designer:
These people design and implement tools. These software packages that
facilitate database modelling and design, database system design and
implement performance.
Workers behind the scene (cont.)
Flexibility:
It may be necessary to change the structure of the database with the inclusion of new entities.
Nowadays DBMS allow certain types of evolutionary changes to the structure of the
database.
Implication of the Database Approach(cont.)
Availability Of Up-to-Date Information:
DBMS make the update database available to all users. It is so important at
some industries to retrieve the updated database.
The availability is essential for many transaction-processing applications,
such as reservation systems or banking database.
Economies Of Scale:
The DBMS approach permits consolidation of data and applications.
This enables the whole organization to invest in more powerful processors,
storage devices, or communication rather having a weaker equipment's in
each departments.
Advantages of Database
• Reduction of redundancy.
Avoid storing the data multiple times.
• Restricting Unauthorized Access.
• Avoidance of inconsistency.
• Provide Storage Structure for efficient Query Processing
• Share ability.
• Provide Backup and Recovery.
• Improved security.
• Provide Multiuser interface.
• Representing Complex Relationship among Data.
• Enforcing Integrity Constraint.
Integrity constraint involves specifies a data type for each item.
Uniqueness in data- a course_name should have different course name.
Disdvantages of Database
Higher cost
Conversion cost
Most difficult recovery
When Not To Use Database
In spite of advantages of using the database, there are some situation in which a
DBMS may involve unnecessary overheads. Some of them are listed below:
High initial investment in hardware, software and training.
The generality that a DBMS provides for defining and processing the data.
Overheads for providing the security, concurrency control, recovery, and
integrity functions.
Problem arise when the database are not properly design.
Simple file system are use for simple, well defined database application that are
not expected to change.
Application Of Database Management System.
Hospital Management
System.
Hotel Management
System.
Flight Aviation
Management
University Management
System.
IT Inventory etc.
Summary
Introduction
Basic definitions
Database
Data
Mini world
DBMS
Database systems
An example database
Applications of database
Advantages Of Database
Functionalities of database systems
Characteristics of database systems
End Of Lecture 1