Documente Academic
Documente Profesional
Documente Cultură
Introduction to databases
Timothy G. Griffin
www.cl.cam.ac.uk/Teaching/current/Databases/ 1
Database Prehistory
Data entry
Query processing
Sorting
Early Automation
Data management and application code
were all tangled together
Hard to modify
Hard to generalize
Your Applications
Go Here
DBMS
Database abstractions
allow this interface to
be cleanly defined and
this allows applications
and data management
systems to be
implemented
separately.
Service Tools
ex
c
Development
DB
ha
ng
e
Submission tools
Submitters
Da
ta
Database
design
Q/C etc
Production DB
End Users
Other archives
Service DB
D
at
Add value
(computation)
aD
ist
r
ib
.
Releases
Releases
&
&
6
Updates
Updates
10
Course Outline
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Introduction
Entity-Relationship Model
The Relational Model
The Relational Algebra
The Relational Calculus
Schema refinement: Functional
dependencies
Schema refinement: Normalisation
Transactions
Online Analytical Processing (OLAP)
More OLAP
Basic SQL and Integrity Constraints
Further relational algebra, further SQL
11
Recommended Reading
OLAP
DB2/400: Mastering Data Warehousing Functions. (IBM Redbook) Chapters 1 &
2 only. http://www.redbooks.ibm.com/abstracts/sg245184.html
Data Warehousing and OLAP
Hector Garcia-Molina (Stanford University)
http://www.cs.uh.edu/~ceick/6340/dw-olap.ppt
Data Warehousing and OLAP Technology for Data Mining Department of
Computing
London Metropolitan University
http://learning.unl.ac.uk/csp002n/CSP002N_wk2.ppt
12
2. PostgreSQL:
www.postgresql.org
Open source, powerful
3. Microsoft Access:
4. Commercial systems:
Three-level architecture
External
Schema 1
Conceptual
level
Physical
level
External
Schema 2
Conceptual
Schema
External
Schema n
External
level
Internal
Schema
15
Conceptual design
Next Lecture
Logical design
Translate E/R model into (typically) relational schema
Schema refinement
Check schema for redundancies and anomalies
Physical design/tuning
Consider typical workloads, and further optimise
17
18
19
Design Heterogeneity
De-normalized Derived Tables
--- for fast access
Other archives
Database
design
Development
DB
ha
ng
e
Q/C etc
Production DB
End Users
ex
c
Submission tools
Submitters
Da
ta
Service Tools
Normalized Tables
Service DB
D
at
Add value
(computation)
aD
ist
r
ib
.
Releases
Releases
&
&
20
Updates
Updates