Chapter 6
Chapter 6
Chapter 6
Basics of Data Processing
Data → raw facts
Information → processed data
Data processing
Input Process Output
Database
Field … Field …
…
… Character Character
… …
Definitions
Character - is the smallest element in the hierarchy and can be alphabetic, numeric, or
special symbol
Field (attribute or column) – an indivisible unit of data that represents an attribute of
some entity
is group of characters
Record ( tuple or row)- group of fields
File – collection of all records for a particular entity
Database - collection of logically related files
1 By:- Ahmed A.
Chapter 6: Basics of Data Processing
6.3.1 Files
1. Types of Files
a. Master File – a file of permanent records e.g students record
b. Transaction File – results from various transactions and is used to update
the master file. E.g grade report file
it is of temporary nature
c. Program Files – contains a simple program or collection of program parts.
E.g application software
d. Work File – during process, an intermediate file might be created. Such an
intermediate file is called a network file. eg. Log files
2. File Processing Operations
a. When a particular application program is in use, it will have to access the
relevant file(s)
b. The major file processing operations are:
File updating – changing data in a records, inserting a new record,
or deleting an existing record
File search
File retrieval
2 By:- Ahmed A.
Chapter 6: Basics of Data Processing
3. File Organization
a. File organization refers to the arrangement of records within a particular
file
b. The two basic methods of file organization are:
Sequential files- the data is stored one after the other in sequence
according to some key
Direct access files – data is stored in such a way that they will
have direct access
6.3.2 Databases
A database (DB) is a non redundant collection of structured data or
logically related files. The data in the database is common to all users of
the system but is independent of programs that use the data
Types of DB
Relational DB
- data is organized in tables
- each row represents a single record in a file
Network DB
- A child in the relationship can have more than one parent
- An item in a structure can be linked to any other item
Hierarchical DB
- Composed of a hierarchy of nodes which form a tree
- The upper part most node is root
- No node can have more than one parent but can have more than
one children
Object-oriented DB
- Made up of object interacting via their methods
Deductive DB
- Also known as knowledge base
- Is AI database used in AI systems
Database Management System (DBMS)
Software that construct, expands and maintains the DB
Function of DBMS
- Allocation of storage to data
- Retrieval and cross referencing of data in the DB
- Protecting of data against unauthorized access
- Provision of data recovery and restart facilities after a hardware or
software failure
- Provision of statistics of the use made of the data in the in the DB
Database Administrator(DBA)
DBA is a person who is responsible for the overall functioning of the database.
Some of the Responsibilities of DBA are:
Creating and updating database that meets the needs of an organization
Preparing of making available manuals about the facilities of the DB and
how to make use of these facilities
Providing security for the DB
3 By:- Ahmed A.
Chapter 6: Basics of Data Processing
Ensuring that the data in the DB is complete, accurate, up-to-date and not
redundant.
4 By:- Ahmed A.