Académique Documents
Professionnel Documents
Culture Documents
What is a database
A database is any organized collection of data.
Some examples of databases you may
encounter in your daily life are:
a telephone book
T.V. Guide
airline reservation system
motor vehicle registration records
papers in your filing cabinet
files on your computer hard drive.
What
is data?
What is information?
Longitudinal tracking
Is to transform
Data
Information
Knowledge
Action
What is a database?
Quite simply, its an organized collection of
data. A database management system
(DBMS) such as Access, FileMaker, Lotus
Notes, Oracle or SQL Server which provides
you with the software tools you need to
organize that data in a flexible manner. It
includes tools to add, modify or delete data
from the database, ask questions (or
queries) about the data stored in the
database and produce reports
summarizing selected contents.
Outlook contacts
Aspira Association MIS
GIS-GPS systems
Customer records
Types of Databases
Non-relational databases
Non-relational databases place information in field categories that
we create so that information is available for sorting and
disseminating the way we need it. The data in a non-relational
database, however, is limited to that program and cannot be
extracted and applied to a number of other software programs, or
Relational databases
In relational databases, fields can be used in a number of
ways (and can be of variable length), provided that they
are linked in tables. It is developed based on a database
model that provides for logical connections among files
(known as tables) by including identifying data from one
table in another table
How often will the data be modified? Who will make these
modifications?
Who will be providing IT support for the database?
What hardware is available? Is there a budget for
purchasing additional hardware?
Who will be responsible for maintaining the data?
Will data access be ofered over the Internet? If so, what
level of access should be supported?
Some Definitions
The table above contains the employee information for our organization -characteristics like name, date of birth and title. Examine the construction of
the table and you'll find that each column of the table corresponds to a specific
employee characteristic (or attribute in database terms). Each row
corresponds to one particular employee and contains his or her information.
That's all there is to it! If it helps, think of each one of these tables as a
spreadsheet-style listing of information.
Where do we start?
Database modeling:
Remember garbage in
garbage out. Some
examples and how to
prevent this.
Quality management
encompasses three distinct
processes: quality planning,
quality control, and quality
improvement
Quality Planning in relation
to database systems
design:
Who will perform data
entry?
Training? On-line help?
How data entry will be
performed?
Barcode scanners
USB or
Wireless attached to
a Palm or Pocket PC
Pocket PC
WiFi 802.11g,
Bluetooth
Wireless networks
(real-time on
demand systems)
Summarizing
So what is a database?
Structure of DB knowledge
Data Base
1. Design
0. Intro
Database
Fundamentals
Conceptual
Modeling
Relational
Model
2. Querying
Query
Languages
Advanced
SQL
3. Applications 4. Advanced
Topics
Java DB
Applications
JDBC
Transaction
Management
Data
Mining
Normalization
Newbie
Users
Designers
Developers
Professionals
The Database
Why Databases?
Independence from representation
formats
Control redundancy and consistency
Ensure integrity/security
Better scalability
Allow ad hoc access
Better maintenance
Better concurrency
Other topics
Data Independence
Does data have to be part of
programs?
Do we need to change one if the
other changes?
Three-tier architecture of databases
View
Conceptual
Physical
Access Flexibility
Data Modeling
DATABASE SYSTEM
REALITY
structures
processes
MODEL
data modeling
Process Modeling
REALITY
structures
processes
process modeling
DATABASE SYSTEM
MODEL
Database Design
The purpose of database design is to create a database which
Abstraction
It is very important that the language used for data representation
supports abstraction
Classification
Aggregation
Generalization
Classification
In a classification we form a concept in a way which allows us to
decide whether or not a given phenomena is a member of the
extension of the concept.
CUSTOMER
Tom
Ed
Nick
...
Liz
Joe
Louise
Aggregation
In an aggregation we form a concept from existing concepts. The
phenomena that are members of the new concepts extension are
composed of phenomena from the extensions of the existing
concepts
AIRPLANE
COCKPIT
WING
ENGINE
Generalization
In a generalization we form a new concept by emphasizing common
aspects of existing concepts, leaving out special aspects
CUSTOMER
1STCLASS
BUSINESS
CLASS
ECONOMY
CLASS
Generalization (cont.)
Subclasses may overlap
CUSTOMER
1STCLASS
BUSINESS
CLASS
TRUCKS
HELICOPTERS
AIRBORNE
VEHICLES
GLIDERS
aggregation
generalization
classification
intension
O
Abstraction
classification
aggregation
generalization
O
Concretization
exemplification
decomposition
specialization
extension
O
DATABASE TERMINOLOGY
Data Models
Keys and Identifiers
Integrity and Consistency
Triggers and Stored Procedures
Null Values
Normalization
Surrogates - Things and Names
Data Model
A data model consists of notations for
expressing:
data structures
integrity constraints
operations
Centralized Systems
Client-Server Systems
Transaction Servers
Data Servers
Parallel Systems
Measured by:
speedup = small system elapsed time
large system elapsed time
Speedup is linear if equation equals N.
Speedup
Scaleup
Interconnection Architectures
Shared Memory
Shared Disk
Shared Nothing
Distributed
Systems
Data
spread over multiple
Distributed
Databases
Homogeneous distributed databases
Network Types
Local-area Network
Data is replicated.
Updates are propagated to replicas periodically.
Copies of data may be updated independently.
Non-serializable executions can thus result.
Resolution is application dependent.