0% found this document useful (0 votes)
9 views31 pages

Databases and Database Management Systems

This document provides an overview of database management systems, including definitions, classifications, and the importance of data integrity and security. It covers the structure of databases, the roles of individuals involved, and the relational database model, as well as how databases are utilized on the web. Key concepts such as data hierarchy, entity relationships, and the process of data definition are also discussed.

Uploaded by

youstupe2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views31 pages

Databases and Database Management Systems

This document provides an overview of database management systems, including definitions, classifications, and the importance of data integrity and security. It covers the structure of databases, the roles of individuals involved, and the relational database model, as well as how databases are utilized on the web. Key concepts such as data hierarchy, entity relationships, and the process of data definition are also discussed.

Uploaded by

youstupe2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Lecture 4

Database Management Systems


and Applications

Reference :Understanding Computers


Chapter 14

1
Learning Objectives

1. Explain what a database is, including common


database terminology, and list some of the advantages
and disadvantages of using databases.
2. Discuss some basic concepts and characteristics of
data, such as data hierarchy, entity relationships, and
data definition.
3. Describe the importance of data integrity, security, and
privacy, and how they affect database design.

2
Learning Objectives

4. Identify some basic database classifications and


discuss their differences.
5. List the most common database models and discuss
how they are used today.
6. Understand how a relational database is designed,
created, used, and maintained.
7. Describe some ways databases are used on the Web.

3
Overview

• This chapter covers:


– What a database is, the individuals who use them,
and how databases evolved
– Important database concepts and characteristics
– Database classifications and models
– How to create and use a relational database
– How databases are used on the Web

4
What Is a Database?

• Database: A collection of related data stored in a manner


so it can be retrieved as needed
• Database management system (DBMS): Used to create,
maintain, and access databases
• A database typically consists of:
– Tables: Collection of related records
– Fields (columns): Single category of data to be stored
in a database (name, telephone number, etc.)
– Records (rows): Collection of related fields in a
database (all the fields for one customer, for example)
• Relational database: Data from several tables is tied
together (related) using a field that the tables have in
common
5
A Simple Relational Database Example

6
What Is a Database?

• Primary key: Specific field that uniquely identifies the


records in that table
– Used in a relational
database to relate tables
together
– Must be unique and a field
that doesn’t change
• PC DBMSs include:
– Microsoft Access, Corel
Paradox, Lotus Approach
• For more comprehensive
enterprise databases
– Oracle Database, IBM DB2, Microsoft SQL Server

7
What Is a Database?

• Individuals involved with a DBMS:


– Database designers: Design the database
– Database developers: Create the database
– Database programmers: Write the programs needed
to access the database or tie the database to other
programs
– Database administrators: Responsible for managing
the databases within an organization
– Users: Individuals who enter data, update data, and
retrieve information out of the database

8
Advantages and Disadvantages of the
DBMS Approach

• Advantages
– Faster response time
– Lower storage requirements
– Easier to secure
– Increased data accuracy
• Disadvantages
– Increased vulnerability (backup is essential)

9
Data Concepts and Characteristics

• Data hierarchy
– Characters
– Fields/columns: Hold single pieces of data
– Records/rows: Groups of related fields
– Tables: Collection of related records
– Database: Contains a group of related tables
• Entity: Something of importance to the organization
– Entities that the organization wants to store data
about typically becomes a database table
– Attributes: Characteristics of an entity
• Typically become fields in the entity’s database
table
10
Data Concepts and Characteristics

• Entity relationships: Describe an association between


two or more entities
– One-to-one (1:1) entity relationships (not common)
• e.g. each store has a single manager
– One-to-many (O:M) entity relationships (most
common)
• e.g. a supplier supplies more than one product to a
company
– Many-to-many (M:M) entity relationships (requires a
third table to tie the tables together)
• e.g. an order can contain multiple products and a
product can appear on multiple orders

11
Principles of Information Systems, Tenth Edition 12
Data Concepts and Characteristics

• Data definition: The process of describing the properties


of data to be included in a database table
– During data definition, each field is assigned:
• Name (must be unique within the table)
• Data type (such as Text, Number, Currency,
Date/Time)
• Description (optional description of the field)
• Properties (field size, format of the field, allowable
range, if field is required, etc.)
• Finished specifications for a table become the table
structure

13
Data Definition

14
Data Validation

15
Data Concepts and Characteristics

• Data organization: Arranging data for efficient


retrieval
– Indexed
organization
uses an
index to
keep track
of where
data is
stored

16
Quick Quiz

1. A column in a database in which customer names are


stored would be referred to as a
______________________.
a. field
b. record
c. table
2. True or False: Data validation procedures are used to
ensure that data entered into a database matches the
specified type, format, and allowable value.
3. The process of describing the properties of data to be
included in a database table___________.
Answers:
1) a; 2) True; 3) Data definition
17
The Relational Database Model

• Database design steps


– Identify the purpose of the database
– Determine the tables and fields
– Assign the fields to a table and reorganize as needed
to minimize
redundancy
(normalization)
– Finalize the
structure
(primary keys,
field properties,
etc.)

18
The Relational Database Model

• Creating a relational database:


– Create the database file
– Create the structure of each individual table (in
Access, can be performed in either Design or
Datasheet view)
– Enter data
• Existing data can be migrated to the new database
• New data can be added via form or the Design
view
– Relate tables as needed

19
The Relational Database Model

20
The Relational Database Model

21
The Relational Database Model

22
The Relational Database Model

• Retrieving information from database


– Query: A request to see information from a database
that matches specific criteria
• Specifies which records should be retrieved by
specifying criteria
• Can specify the fields to be displayed
• Many programs have wizards or other tools to
make it easy to create a query
• Must be designed to extract information as
efficiently as possible
• Queries are saved so they can be retrieved again
when needed; proper results are displayed each
time the query is run

23
The Relational Database Model

24
The Relational Database Model

– Report: Formatted means of looking at a database


table or the results of a query
• Reports can pull data from more than one table
• Many programs have wizards or other tools to
make it easy to create a report
• Can be modified and customized using the Design
view
• Reports are saved so they can be retrieved again
when needed; proper results are displayed each
time the query is run

25
The Relational Database Model

26
Databases and the Web

• Databases are commonly used on the Web


– Information retrieval, e-commerce, dynamic Web
pages (change based on user input), etc.

27
Databases and the Web

• How Web databases work


– Visitor makes request via a Web site
• Search form
• Logging on to personalize site
• Uploading user content
– Web server converts the request into a database
query and passes it onto the database server, and
then sends the results back to the visitor

28
Databases and the Web

– Middleware is used to connect two otherwise


separate applications, such as a Web server and a
database management system
• Commonly written as scripts
– JavaScript
– VB Script
– PHP scripts

29
Databases and the Web

30
Quick Quiz

1. Relational Database is the most widely used type of


database today.
2. True or False: Databases are often used in conjunction
with dynamic Web pages.
3. A(n) _______________________ is used to extract
specific information from a database by specifying
particular conditions about the data to be retrieved.
Answers:
1) True; 2) True; 3) query

31

You might also like