Documente Academic
Documente Profesional
Documente Cultură
Designing Databases
Major Topics
Files
Databases
Normalization
Key design
Using the database
Data warehouses
Data mining
Kendall & Kendall
13-2
13-3
13-4
Approaches to Data
Storage
There are two approaches to the
storage of data in a computer system:
13-5
Files
A file can be designed and built
13-6
Objectives of Effective
Databases
The effectiveness objectives of the
database include:
13-7
Objectives of Effective
Databases
The effectiveness objectives of the
database include (continued):
13-8
Metadata
Metadata is the information that
describes data in the file or
database.
13-9
13-10
Entity-Relationship
Concepts
Entities are objects or events for
13-11
Entities
A distinct collection of data for one
person, place, thing, or event.
Customer
13-12
Entity Subtype
Student
Internship
13-13
Associative Entity
Associative Entity - links two
entities
An associative entity can only exist
between two entities
Order
Item
13-14
Attributive Entity
An attributive Entity - describes
attributes, especially repeating
elements.
Book
Subject
13-15
Entity-Relationship
Diagram Symbols
13-16
Relationships
Relationships may be:
One-to-one.
One-to-many.
Many-to-many.
13-17
Relationships
Many
One
Many
O
None
13-18
Self-Join
A self-join is when a record has a
relationship with another record on
the same file.
13-19
Entity-Relationship Diagram
Example
13-20
13-21
Key Types
Key types are:
13-22
Files
A file contains groups of records
13-23
File Types
Types of files available are:
Master file.
Table file.
Transaction file.
Work file.
Report file.
13-24
Transaction records
13-25
File Organization
The different organizational
Sequential organization.
Linked lists.
Hashed file organization.
13-26
Databases
A database is intended to be
(older).
Network database structures (older).
Kendall & Kendall
13-27
13-28
Normalization
Normalization is the transformation
of complex user views and data to
a set of smaller, stable, and easily
maintainable data structures.
13-29
Normalization (Continued)
Normalization creates data that
are stored only once on a file.
The exception is key fields.
The data structures are simpler
and more stable.
The data is more easily
maintained.
Kendall & Kendall
13-30
13-31
Three Steps of
Normalization
13-32
13-33
13-34
13-35
13-36
13-37
Entity-Relationship
Diagram and Record Keys
The entity-relationship diagram may be
used to determine record keys.
13-38
13-39
Integrity Constraints
There are three integrity constraints
that help to ensure that the database
contains accurate data:
13-40
Entity Integrity
Entity integrity constraints are
rules for primary keys:
value.
If the primary key is a composite key,
none of the fields in the key can
contain a null value.
13-41
Referential Integrity
Referential integrity governs the
13-42
Referential Integrity
(Continued)
Referential integrity includes:
13-43
Referential Integrity
A restricted database updates or
13-44
Domain Integrity
Domain integrity defines rules that
ensure that only valid data are
stored on database records
13-45
13-46
Denormalization
Denormalization is the process of
taking the logical data model and
transforming it into an efficient
physical model.
13-47
Data Warehouses
Data warehouses are used to
organize information for quick and
effective queries.
13-48
13-49
13-50
13-51
13-52
Statistical analysis.
Decision trees.
Neural networks.
Intelligent agents.
Fuzzy logic.
Data visualization.
13-53
together.
Sequences, patterns of actions that take
place over a period of time.
Clustering, patterns that develop among
groups of people.
Trends, the patterns that are noticed over
a period of time.
Kendall & Kendall
13-54
sharing data.
Extensible markup language (XML)
is used to define data used
primarily for business data
exchange over the Web.
13-55