Lecture Ch01
Lecture Ch01
Introduction to Databases
Chapter 1 - Objectives
Some common uses of database systems.
Characteristics of file-based systems.
Problems with file-based approach.
Meaning of the term database.
Meaning of the term Database Management
System (DBMS).
Chapter 1 - Objectives
Typical functions of a DBMS.
Major components of the DBMS environment.
Personnel involved in the DBMS environment.
History of the development of DBMSs.
Advantages and disadvantages of DBMSs.
Examples of Database Applications
Purchases from the supermarket
Purchases using your credit card
Booking a holiday at the travel agents
Using the local library
Taking out insurance
Renting a video
Using the Internet
Studying at university
File-Based Systems
Collection of application programs that perform
services for the end users (e.g. reports).
Duplication of data
Same data is held by different programs.
functions.
Any new requirement needs a new program.
Database Approach
Arose because:
Definition of data was embedded in application
Result:
the database and Database Management System
(DBMS).
Database
Shared collection of logically related data (and a
description of this data), designed to meet the
information needs of an organization.
the data.
Database Approach
Controlled access to database may
include:
a security system
an integrity system
a concurrency control system
a recovery control system
a user-accessible catalog.
Views
Allows each user to have his or her own view of
the database.
Books
(id, title)
Authors
Publisher Subjects
(first, last)
History of Database Systems
Network Model (1970’s)
Provides for single entries of data and navigational
Subjects Books
Publishers
Problems:
Changes in data structure require changes in application
programs that access that structure
No Many-to-Many relationships
Programmers must be thoroughly familiar with the database
structure.
History of Database Systems
Second generation
Relational Model (1980’s)
Provides a conceptually simple model for data as
relations (typically considered “tables”) with all data
Authorid Author name
visible. pubid pubname
1 Harper
1 Smith
2 Wynar
2 Addison
3 Jones
3 Oxford
Book ID Title pubid Author id 4 Duncan
4 Que
1 Introductio 2 1 5 Applegate
2 The history 4 2
3 New stuff ab 3 3
4 Another title 2 4 Book ID Subid
Subid Subject
5 And yet more 1 5 1 2
1 cataloging
2 1
2 history
3 3
3 stuff
4 2
4 3
Authors
Publisher Subjects
(first, last)
History of Database Systems
Object-Relational (1990’s)
Combines the well-known properties of the