Escolar Documentos
Profissional Documentos
Cultura Documentos
Data
• Can include text, numbers, images, audio and video
• Used to generate information
Information
• Are processed data
• Data that is organized, meaningful and useful
• Can be in the form of documents, audio, images and video
• Ex: bank statements; membership card information; receipt information; stock analyses;
credit reports
• Computers process data in a database into information.
Data Integrity
• Identifies the quality of data in a database
• The more errors the data contains, the lower its integrity
• Data integrity is important because computers and people use information to take actions and
make decisions
Hierarchy of Data
Character
⇒ Represents a single number, letter, punctuation mark or other symbols
Field
⇒ A combination of one or more related characters
⇒ Field names uniquely identify each column in a table in Access
o Text, Numeric, AutoNumber, Currency, Date, Memo, Yes/No, Hyperlink,
Object
Record
⇒ represents a collection of attributes that describe a real-world entity. A record
consists of fields, with each field describing an attribute of the entity (object, person,
place, or event).
⇒ a group of related fields
o Primary key – a key field, which uniquely identifies each record in a file
File
⇒ A collection of related records stored on a storage medium such as HD, CD, DVD
⇒ Files are frequently classified by the application for which they are primarily used
(employee file).
Database
⇒ is an integrated collection of logically related records or files. A database consolidates
records previously stored in separate files into a common pool of data records that
provides data for many applications. The data is managed by systems software called
database management systems (DBMS). The data stored in a database is independent
of the application programs using it and of the types of secondary storage devices on
which it is stored.
NORAMLIZATION
⇒ Normalization organizes a database into one or several normal forms to remove ambiguous
relationships between data and minimize data redundancy
⇒ The objective of normalization is to prevent replication of data, with all its negative
consequences.
⇒ In a relational database, each table is normalized, which means that
o all its fields will contain single data elements
o all its records will be distinct, and
o each table will describe only a single class of entities
⇒ When a database suffers from poor table organization, experts say it's not normalized. There
are rules that govern how a relational database should store its tables. These rules are called
the Rules of Data Normalization.
A better way is to assign each customer an ID number. Include that ID number in a table
that contains names and addresses (see the Customers Table). Then you can include the same ID
number as a link in separate table that contains transactions (see the Orders Table).
Customers Table
CUSTOMER ID CUSTOMER NAME CUSTOMER ADDRESS CUSTOMER PHONE
1 ABC Plumbing 201 W. 44th St. (317)555-2394
2 Jack’s Emporium 1155 Conner Ave. (317)555-4501
3 Millie’s Pizza 108 Ponting St. (317)554-2349
Orders Table
CUSTOMER ID ORDER DATE ORDER
TOTAL
1 2/5/96 $155.90
1 5/14/96 $90.24
1 7/9/96 $224.50
2 6/6/95 $1,592.99
2 7/26/96 $990.41
3 8/29/96 $39.95
But what if employee takes more than one class? You’d have to add a duplicate line in the
table to list it, and then you’d have the problem described as multiple records with identical field
entries. And what if the only employee who has taken a certain class leaves the company? When
you delete that employee’s record, you delete the information about the class’s credit hours, too.
A better way would be to create separate tables for Employees, Classes, and Training.
Here are some examples of what such tables might look like:
Employee Table
Employee ID Employee Name Employee Address Employee Phone
1 Phil Sharp 211 W. 16th St. (317)555-4321
2 Becky Rowan 40 Westfield Ct. (317)555-3905
3 Nick Gianti 559 Ponting St. (317)555-7683
4 Jan Donato 720 E. Warren (317)555-2930
5 Cynthia Hedge 108 Carroll St. (317)555-5990
Class Table
Class ID Class Taken Credit Hours
C1 Leadership Skills 3
C2 Customer Service 2
C3 Public Speaking 9
Training Table
Employee ID Training Date Class Passed?
1 5/5/96 C1 Yes
2 5/5/96 C2 Yes
3 6/15/96 C3 Yes
4 5/5/96 C3 No
5 6/15/96 C2 Yes
6 6/15/96 C1 Yes
Do not create fields for information that can be derived from entries in other fields.
Ex. Do not include a field for Age. Instead store the birthdate and compute the
age