Introduction

(read ch. 1)

A database management system (DBMS) is a collection of data and an integrated set of programs that access that data.

Example: PSH keeps information about each student: name, social security number, standing, address ...

Goals of a DBMS:

Why are DBMS's needed? Alternative: store information in files, and write programs as needed to modify these files and retrieve information.

A file processing system is a collection of files and programs that access/modify these files

Problems with file processing systems:

DBMS's were developed to remedy these problems.

Return to Table of Contents

Data Abstraction

abstraction
data abstraction
hiding details of how data is stored and maintained.

Levels of data abstraction (from low to high)

Return to Table of Contents

Data Models

A data model is a collection of conceptual tools for describing:

Data models:

Kinds of data models:

object-based logical models

characteristics:

common characteristics of ER and OO models:

record-based logical models

characteristics:

examples of record-based logical models:

network model

hierarchical model

The network and hierarchical models are low-level and mostly of historical interest.

Return to Table of Contents

Instances and Schemes

The data stored in the database at any given time is an instance of the database.

The overall design of the database is the database scheme.

Example:

name account number balance
Linda Null 102 8725.38
Tim Wahls 497 0.50

is an instance of a database with scheme (name, account number, balance)

Database systems have schemes (designs) at each level of abstraction:

As with levels of abstraction, there is:

Return to Table of Contents

Data Independence

(different from section 1.5 of the text!)

data independence
the ability to modify a scheme definition at one level without affecting the scheme at the next higher level
physical data independence
the ability to change the physical scheme without affecting the conceptual scheme
logical data independence
the ability to change the conceptual scheme without affecting subschemes

Notes:

Return to Table of Contents

Data Definition Language

The data definition language (DDL) is the language used to define and modify the conceptual scheme of the database.

Return to Table of Contents

Data Manipulation Language

data manipulation language (DML)
the language used at the conceptual and view levels to retrieve, insert, delete and modify information stored in the database
query
a request for information retrieval. Example (in English): List all customers who have an account balance over $500
query language
the part of the DML used for retrieving information

The terms query language and data manipulation language are often used interchangeably. Example: SQL is a DML, but is usually called a query language.

DML's are classified by the kind of query language they include:

Notes:

Return to Table of Contents

Database Manager

The database manager is the program or program unit that provides the interface between the physical level and the conceptual level.

Functions of the database manager:

The database manager for a small system typically does not implement all of these functions.

Return to Table of Contents

Database Administrator

The database administrator is the person(s) in control of the DBMS. One goal of DBMS's is to permit centralized control.

Typical responsibilities of the database administrator:

Return to Table of Contents

Database Users

People who interact with the DBMS:

Return to Table of Contents

DBMS Components

Return to Table of Contents