Title: Databases and Database Management Systems
1Chapter 14
- Databases and Database Management Systems
2Learning Objectives
- Explain what a database is, including common
database terminology and some of the advantages
and disadvantages of using databases. - Discuss some basic concepts and characteristics
of data, such as hierarchy, entity relationships,
keys, etc. - Identify some basic database classifications and
models and discuss the differences between them.
3Learning Objectives, contd.
- List four types of database models.
- Understand how a relational database is designed,
created, and used. - List some ways databases are used on the World
Wide Web. - State four key personnel involved with database
systems.
4Overview
- This chapter covers
- Database management systems
- Database concepts and the evolution of databases
- Database classifications and models
- Web databases
- People who use databases
5What Is a Database?
- A database is a collection of related data stored
and organized in a manner so it can be retrieved
as needed. - Many databases are composed of tables consisting
of fields and records. - Sometimes a table is called a file.
6(No Transcript)
7Relational Databases A Simple Example
- A relational database is found most often on PCs.
- Data from several different tables can be
combined quickly using a relational database
management system.
8File Management Systems vs. Database Management
Systems
- File management system
- Allows the creation of a single database
- Only one file accessed at a time
- Database management system
- Can access data from several different database
tables at one time - Has the capability to use multiple tables and
interrelate them - Includes helpful tools, such as a query language,
programming-language facility, etc.
9(No Transcript)
10Interacting with a Database Management System
- Retrieval/update facility
- Allows users to interact with a DBMS
- Usually contains a graphical, menu-driven
interface that allows users to select choices
onscreen - Programming-language facility
- Allows users to create complete computer programs
- Targeted to sophisticated users who desire custom
menus or screens
11(No Transcript)
12Advantages and Disadvantages of the Database
Approach
- Advantages
- Better information
- Faster response time
- Lower operating costs and storage requirements
- Improved data integrity and better data
management - Disadvantages
- Primarily expense
- Increased vulnerability
13Data Hierarchy
- Data in a database is represented by bits and
bytes that form the characters used in the
database. - Characters form field entries.
- Groups of related fields are called records, and
related records are organized into tables. - Databases or database files consist of related
tables.
14Data Definition
- Data definition involves describing the
properties of the data that goes into each
database table. - The finished specifications are referred to as
the table structure. - A DDL is a special language component in DBMSs
for large systems.
15(No Transcript)
16The Data Dictionary
- Data dictionary repository of all data
definitions in a database. - Typically kept active to the application.
- Monitors the applications environment to ensure
that no data is entered or used in a conflicting
way. - Many database systems also use the data
dictionary to provide security for access and/or
update.
17Data Integrity and Security
- Data integrity refers to the accuracy of data.
- Data validation refers to the process of ensuring
that data entered into the database matches the
specifications. - Data security refers to protecting data against
destruction and misuse.
18Entity Relationships
- Entity something in a database system that is of
importance to the organization - One-to-one relationships
- One-to-many relationships
- Many-to-many relationships
19Data Organization
- Arranging data for efficient retrieval is called
data organization. - Key fields
- Sequential organization
- Indexed organization
- Direct organization
20(No Transcript)
21(No Transcript)
22(No Transcript)
23Single-User vs. Multiuser Systems
- Single-user databases are located on a PC and
designed to be accessed by one user. - Most business databases are multiuser systems.
- Access to data must be controlled to ensure that
it is not modified by two users at one time. - Most systems take care of this by temporarily
blocking access to data while it is being used.
24Client-Server Systems
- Client-server systems usually consist of a power
server supplying resources to client PCs. - The client is called the front end and typically
runs a relational DBMS. - The server is called the back end and runs a
database server program.
25(No Transcript)
26Centralized vs. Distributed Database Systems
- Centralized
- The database is located entirely on a single
computer. - Distributed
- Pieces of the database are located on a variety
of computers, though all users can access the
entire database just as they would with a
centralized system.
27(No Transcript)
28The Evolution of Databases
- Flat files
- Hierarchical
- Network
- Relational
- Object-oriented
29The Hierarchical and Network Database Models
- Hierarchical database management system stores
data in the form of a tree, which sets up a
one-to-many relationship between data elements. - Network database management system relationship
between data elements is usually either
one-to-many or many-to-many.
30(No Transcript)
31The Relational Database Model
- Designing
- Normalization process
- Structure of table developed
- Creating
- Retrieving information
- Queries and reports
- SQL
- QBE
32(No Transcript)
33The Object-Oriented Database Model
- OODBMS combines multiple types of data.
- Usually accessed using an object-oriented
programming language or object query language
(OQL).
34Examples of Web Databases in Use
- Information retrieval
- E-commerce and e-business
- Dynamic Web pages
35(No Transcript)
36How Web Databases Work
- Software that connects two separate applications
is called middleware. - Types of middleware include
- CGI
- API
- PHP
37Database Management Systems Personnel
- Database designers
- Programmers