Professional Documents
Culture Documents
Edi 104 - Chapter 1
Edi 104 - Chapter 1
1
reason for using database is its capability
to process the stored data into the huge
amount of useful information. With the
vast number of databases available
today, the focus here is made to use
Microsoft Access, which is also the most
popular database in use today.
INTRODUCTION TO
DATABASE
Subtopics:-
1.1 View of Data
1.1.1 Data vs Information
1.1.2 Data Hierarchy
1.1.3 Data Hierarchy in a Database
1.1.4 Data Hierarchy in a Database and Data Hierarchy in a
Database System.
1.2 File System vs Database System
1.2.1 Non-computerized System
1.2.2 Traditional File Processing approach
1.2.2.1 Disadvantages of File Based Approach
1.2.3 Database Approach
1.2.3.1 Definition of Database
1.2.3.2 Definition of Database Management System (DBMS)
1.2.3.3 Purpose of Using Database
1.2.3.4 Component of Database System Environment
1.2.3.5 Component of Database Management System
1.2.3.6 Elements of Database
1.2.3.7 Design Tools
Data consists of facts, text, graphics and figure that can be recorded and that have
implicit meaning.
Information is the data that have been processed and being made to be useful for
users or decision-makers.
Information is stimuli that have meaning in some context for its receiver. When
information is entered into and stored in a computer; it is generally referred to as data. After
processing (such as formatting and printing), output data can again be perceived
as information.
400
350
300
250
200
150
100
50
0
Kedah Selangor KualaPerakNegeri
LumpurSembilan
Data :
Zulaikha, 871212-14-5050, 19, CM2383, No 2, Jln. 3 Tmn.
4 Bandar 5, Kuala Lumpur, Selangor
Process :
The data hierarchy is also referred as hierarchical data model. For every data hierarchy,
the place, at where the data is stored, is named as the node. The nodes for the data
hierarchy above are Students node, Names node, IC node, Age node, Student ID node,
Addresses node and the College-branch node.
For the data hierarchy, the data search is performed from top-down and then left to
right manner, that is the Student node first, then follow by these nodes: Names, IC, Age,
Student ID, Address and College-branch.
Another way to view this data hierarchy is every Student carries the data, such as Names,
IC, Age, Student ID, Addresses and College-branch.
1.1.3 Data Hierarchy in a Database System
The data hierarchy in a database is the hierarchical organization within a database
structure. This organized structure standardized the data storage pattern in a database.
The advantages of such doing are to ease the data retrieving while withholding the
capability of growth in data storages.
Bit (Character) - a bit is the smallest unit of data representation (value of a bit may be a 0 or
1). Eight bits make a byte which can represent a character or a special symbol in a character
code.
File - a group of related records. Files are frequently classified by the application for which
they are primarily used (employee file). A primary key in a file is the field (or fields) whose
value identifies a record among others in a data file.
A relationship can be established for every node on the data hierarchy to the
data hierarchy in database system. Developing the data hierarchy is the
preliminary stage for developing the data hierarchy of a database system.
Therefore, the data hierarchy can directly map onto the data hierarchy of a
database system.
For example, the student enrollment data, of which its data hierarchy is as
shown in Figure 1.2, can map onto the data hierarchy in a database system,
which is as shown in Figure 1-3. The mapping is as shown in Figure 1.4.
Figure 1-4 The Relation of Data Hierarchy and the Database’s Elements
(e) Date/Time: – Date and time values for the years 100 through 9999.
Example:
General Date and Time: 4/5/99, 05:20:00 PM and
4/5/99.
Long Date: Wednesday, September 20, 2000.
Example
The whole process, which includes assigning reference numbers to books and
Solution: E-Book bookstore has to create a new system called “Book Information
System” using the database. The process for creating the new system is known as
“Computerized System”.
As shown in Figure 1-7, information generated from the three departments, which are
personnel, sales and accounting, is submitted to the file processing system that process the
data into files: employee, customer and sales. The files are used by a collection of
applications that performs services for the end users (e.g. reports). The file processing
systems are still widely used today, especially for backing up database systems.
Security
The security does not exist for data structure and data integrity is
not applicable to data of two related data structures.
Database system refers to an organization of components that define and regulate the
collection, storage, management and use of data within a database environment.
Components of DBMS
A database management system (DBMS) consists of several components. Each component
plays very important role in the database management system environment. The major
components of database management system are:
Software
Hardware
Data
Procedures
Database Access Language
Software
The main component of a DBMS is the software. It is the set of programs used to handle the
database and to control and manage the overall computerized database
1. DBMS software itself, is the most important software component in the overall
system
2. Operating system including network software being used in network, to share the data
of database among multiple users.
3.
4. Application programs developed in programming languages such as C++, Visual
Basic that are used to to access database in database management system. Each
program contains statements that request the DBMS to perform operation on
database. The operations may include retrieving, updating, deleting data etc . The
application program may be conventional or online workstations or terminals.
Hardware
Hardware consists of a set of physical electronic devices such as computers (together with
associated I/O devices like disk drives), storage devices, I/O channels, electromechanical
devices that make interface between computers and the real world systems etc, and so on. It
is impossible to implement the DBMS without the hardware devices, In a network, a
powerful computer with high data processing speed and a storage device with large storage
capacity is required as database server.
Data
Data is the most important component of the DBMS. The main purpose of DBMS is to
process the data. In DBMS, databases are defined, constructed and then data is stored,
updated and retrieved to and from the databases. The database contains both the actual (or
operational) data and the metadata (data about data or description about data).
Procedures
Procedures refer to the instructions and rules that help to design the database and to use the
DBMS. The users that operate and manage the DBMS require documented procedures on hot
use or run the database management system. These may include.
Database contains four elements: user data, metadata, indexes and application
metadata.
Example
(c) Indexes
– Data are stored by ascending or descending order in the database,
to improve the performance and accessibility of the database.
Example
Figure 1-12
Indexes
A design tool has a set of tools to design and create the application database. It includes tools
for creating tables, forms, queries and reports.
a) Table
- Store information about specific topic.
- A table consists of fields and records.
- You can have more than one table in any database
Example
Figure 1-15
A Table
b) Forms
– Forms present information in a database in an attractive way.
– Provide a quick way to view, enter and change 1
information.
Example
c) Queries
- Queries allow you to find information of interest in a database.
Example
d) Reports
Minimal Data Redundancy – because data is stored in a single database, data item do
not need to be duplicated in separate files for various systems.
Sharing of data – data can be shared across the enterprise, allowing more users to
access more data.
Economy in distributing database – database design allows better utilization of
hardware.
For example, company does not need to use expensive mainframe but using distributed
databases on smaller computers.
Improved Data Consistency – by eliminating data redundancy, the data inconsistency
also reduced. For example, if a customer address is stored only once, we cannot have
disagreement on the stored values. Updating values is greatly simplified when each value
is stored in one place only.
1.3 Evolution of Database Systems
Database Management Systems were first introduced during the 1960s and it
continue to evolve during the subsequent decades. The evolutionary of the
database technologies is highlighted in Figure 1-19.
Data consists of facts, text, graphics, figure that can be recorded along with
Software
System Environment
Hardware
Table
Forms
Queries Reports
3) DBMS is
a) the instructions and rules to design and use the database
b) a collection of programs that enable users to create and maintain a database
c) is used to present information in a database in an attractive way
d) an application components that are developed using the design tools
e) physical device to control the process of input and output
2
9
7
c
)
1
2
/
8
/
2
0
0
6
d) -3.6 Celsius
e) Suria KLCC
24 | P a g e C h a p t e r 1 : I N T R O D U C T I O N T O D A T A B A S E