Professional Documents
Culture Documents
FUNDAMENTALS OF DATABASE
MANAGEMENT SYSTEM
DFC 2083 – DATABASE SYSTEM
DATABASE
Note: You never see PDAs any more since modern 'smart' phones can do all of this,
and work as a phone too!
Early PDAs, like early palmtops, were pretty basic. But they were a revolutionary way to take
digital data with you on the move.
In the 1990s every business person either had, or wanted one of these!
PDAs are often called Pocket-PCs (for obvious reasons!)
IMPORTANCE OF DATABASES
Planning
Analysis
Logical Design
Physical Design
Implementation
Maintenance
DATABASE DEVELOPMENT
PROCESS
Planning
Planning Purpose–preliminary understanding
Deliverable–request for study
Analysis
Logical Design
Physical Design
Logical Design
Physical Design
Logical
Logical Design
Design
Physical Design
Physical Design
Physical Design
Logical Design
Physical Design
Database activity–
database implementation, Implementation
Implementation
including coded programs,
documentation, Maintenance
installation and conversion
DATABASE DEVELOPMENT
PROCESS
Logical Design
Physical Design
Database activity–
database maintenance, Implementation
performance analysis
and tuning, error Maintenance
Maintenance
corrections
SHARING CONCEPT DATA IN
DATABASE
PROPERTIES OF DATABASES
Completeness Ensures that users can access the data they want.
Integrity Ensures that data is both consistent (no contradictory data) and correct (no
invalid data), and ensures that users trust the database.
Flexibility Ensures that a database can evolve to satisfy changing user requirements.
Efficiency Ensures that users do not have unduly long response times when accessing
data.
Usability Ensures that data can be accessed and manipulated in ways which match
user requirements.
DBMS
Security problems
Database systems offer solutions to all the above problems
VARIOUS COMMON DBMS
Library
Hospital
University
Tourism
Organization
Problems: Traditional approach
Data Security
Data Redundancy
Data Isolation
Program/ Data Dependence
Concurrent Access Anomalies
Data Security
Data isolation means that all the related data is not available in
one file.
Generally, the data scattered in various files, and the files may
be in different formats, therefore writing new application
programs to retrieve the appropriate data is difficult.
Program/ Data Dependence
Centralize
A single central database accessed by
multiple users.
Distributed
Hierarchical
Network
Relational
Entity relationship
Object oriented
Evolution of Major Data Models
The Hierarchical Model—Evolution
North American Rockwell was the prime contractor for the Apollo project which
culminated in the moon landing.
This project required the management of millions of parts – a complex computer
file system was used.
An audit of the tapes revealed that 60% of the data was redundant
This led Rockwell to develop an alternate strategy to manage their data
The Hierarchical Model—Evolution
2- 42
Hierarchical Structure—Characteristics
2- 46
The Network Model
Created to
Represent complex data relationships more effectively
Improve database performance
Impose a database standard
Conference on Data Systems Languages (CODASYL)
American National Standards Institute (ANSI)
Database Task Group (DBTG)
Crucial Database Components
Schema
Conceptual organization of entire database as viewed by the database administrator
Subschema
Defines database portion “seen” by the application programs that actually produce the desired
information from data contained within the database
Data Management Language (DML)
Define data characteristics and data structure in order to manipulate the data
Data Management
Language Components
Advantages
Conceptual simplicity
Handles more relationship types
Data access flexibility – no need for a preorder traversal
Promotes database integrity – must first define the owner and then the member record
Data independence
Conformance to standards
The Network Data Model
(continued)
Disadvantages
System complexity
Lack of structural independence
The Relational Model
Table (relations)
Matrix consisting of a series of row/column intersections
Related to each other by sharing a common entity characteristic
Relational schema
Visual representation of relational database’s entities, attributes
within those entities, and relationships between those entities
Linking Relational Tables
2- 57
Relational Table
2- 59
The Relational Model
Advantages
Structural independence – changes in the relational data structure do not affect the DBMS’s
data access in any way
Improved conceptual simplicity by concentrating on the logical view
Easier database design, implementation, management, and use
Ad hoc query capability - SQL
Powerful database management system
The Relational Model (continued)
Disadvantages
Substantial hardware and system software overhead
Can facilitate poor design and implementation
May promote “islands of information” problems
The Entity Relationship Model
2- 65
Relationships:
The Basic Crow’s Foot ERD
2- 66
The Entity Relationship Model
Advantages
Exceptional conceptual simplicity
Visual representation
Effective communication tool
Integrated with the relational data model
The Entity Relationship Model
Disadvantages
Limited constraint representation
Limited relationship representation
No data manipulation language
Loss of information content
THREE-SCHEMA ARCHITECTURE
Objective :
separate each user’s view of the database from the way it is
physically represented.
THREE-SCHEMA ARCHITECTURE
...
END USER
USER 1 USER 2
EXTERNAL
EXTERNAL VIEW 1 EXTERNAL VIEW 2
LEVEL
External/conceptual mapping
CONCEPTUAL CONCEPTUAL
LEVEL SCHEMA
Conceptual/internal mapping
STORED DATABASE
THREE-SCHEMA ARCHITECTURE
Internal Schema
Physical representation of the database on the computer.
Describes the physical storage structure of the database.
How the data is stored in the database.
THREE-SCHEMA ARCHITECTURE
Conceptual Schema
Describes the structure of the whole database for a community of
users.
It hides the details of physical storage structures and concentrates
on describing entities, data types, relationships, user operations,
and constraints.
THREE-SCHEMA ARCHITECTURE
External Schema
The user’s view of database.
It includes a number of external schemas or user views.
Each external schema describes the part of the database that a
particular user is interested in and hides the rest of the database
from user.
CLIENT-SERVER ARCHITECTURE
Clients and servers can reside in the same computer, or they can
be on different computers that are networked together, usually:
Client – Workstation (usually a PC) that requests and uses a service.
manages user interface and runs applications.
Server – Holds database and DBMS.Computer (PC/mini/mainframe)
that provides a service. For DBMS, server is a database server.
CLIENT-SERVER ARCHITECTURE
Desktop databases:
Desktop databases are oriented toward single-user
applications and reside on standard personal computers .
Desktop databases offer an inexpensive , simple solution to
many less complex data storage and manipulation
requirements.
Example: Microsoft Access, FoxPro, FileMaker Pro,
Paradox and Lotus Approach.
CATEGORIES OF DBMS
Server Databases
Server databases contain mechanisms to ensure the reliability and
consistency of data and are geared toward multi-user applications.
These databases are designed to run on high-performance servers.
Example: Microsoft SQL Server, Oracle and IBM DB2.
BENEFIT OF DESKTOP DATABASES
Offer web solutions. Provide web solutions so that the user can
publish data onto the web in various fashions.
Users are differentiated by the way they expect to interact with the
system
Application programmers – interact with system through DML
calls
Sophisticated users – form requests in a database query language
Specialized users – write specialized database applications that do
not fit into the traditional data processing framework
Naïve users – invoke one of the permanent application programs
that have been written previously
E.g. people accessing database over the web, bank tellers, clerical staff
Database Administrator