Professional Documents
Culture Documents
Activity 3 THE DATABASE CONCEPTS
Activity 3 THE DATABASE CONCEPTS
Databases are used as replacement for the physical equipment we have in an organization
such as folders, envelopes, and file cabinets, which contains bulk of papers and data replaced on
them for future use. These databases are considered as electronic storage that utilizes computer
memory storing capabilities and that the data/information will be stored and retrieved with the
aid of a programmed system.
For instance, you can view a personal telephone directory as a database. This telephone
directory is a listing of names and telephone numbers arranged randomly-arranged. That is, in
the order in which they were entered. However, you can organize these telephone numbers in a
specific order or form according to your preference. For example, you can group the entries by
area codes and alphabetically by last name each area-code group.
There are different types in a database. Data can be classified into main categories,
alphanumeric and numeric, depending on the nature of the information and how it will be used.
1
Chou, George Tsu-der, Dbase III Plus Handbook, 2nd Edition, page 3
For instance, the model number of a television set, RCS-XA100, is an alphanumeric
data. Names, account numbers, and employee identifications numbers are other examples of
alphanumeric data.
Numeric data can be quantified and is represented by the set of numeric digits.
In a payroll database, the number of hours worked by an employee (for example, 38.5
hours) is an example of numeric data. The number of students in a class, the credit limit for a
customer, and the level of inventory for a given item are other examples of numeric data.
Although the alphanumeric and numeric data are stored in a database, the two types play
different roles in their applications. Numeric data is used for computations. Alphanumeric data,
on the other hand, can be used only as text for identification or labelling purpose; alphanumeric
data cannot be used in formula. For instance, if you use the set f digits 83024 as an
alphanumeric string that represents the identification number of an employee, the string is
treated only as label. The string may resemble a numeric value, but cannot be used in a formula.
Database data need to be normalized in order to avoid data redundancy and easy flow of
data as it is being used.
Normalization is the transformation of complex user views and data stores to a set of
smaller stable data structures. In addition to being simpler and more stable, normalized data
structures are more easily maintained than other data structures.
The main objective of the normalization process is to simplify all complex data items that
are often found in user views. These are three steps in normalizing a relation.
These steps are as follows: First normal Form (1NF), which is to remove the repeating
groups; Second Normal Form (2NF), in which all the attributes will be functionally dependent
on the primary key; and Third Normal Form (3NF), that is if all the nonkey attributes are fully
functionally dependent on the primary key and there are no transitive (nonkey) dependencies.
Memorize the 3 normal forms so that you can recite them in your sleep, no repeating
elements or groups of elements; no partial dependencies on concatenated key; no dependencies
on non-key attributes.
Example:2
2
Kendal, Kenneth E., Kendall, Julie E., Systems Analysis and Design, 5th edition, page 598
orders order items
Example:
3
http://www.phlonx.com/resources/nf3.php
orders items
customers
customer_Id (PK)
customer_name
customer_address
customer_city
4
http://www.phlonx.com/resources/nf3.php