Professional Documents
Culture Documents
ANDHRA PRADESH
Name : B. ARUNIMA
Designation : Lecturer
Branch : CCP
Institute : GPW(M), LB Nagar
Topic : Information Management
Semester : V
Subject : RDBMS
Sub. Code : CCP-505
Sub-Topic : Sequential File Organisation
Duration : 50 mins
Teaching Aids : PPTs
CCP505.10 1
Recap
File Organisation
Meaning
Need
■Types of files
Sequential file
Flat file
Random file
CCP505.10 2
Objectives
CCP505.10 3
Can you define a file organisation?
CCP505.10 4
Sequential File Organisation
Records are stored in sequential order
The records are chained together by pointers
The pointer in each record points to the next record
CCP505.10 5
Sequential File Organisation
A Sequential file is designed for efficient processing
of records in sorted order based on a search key
Fig 1
Insertion of records in a
Sequential File
Locate the record in the file before which the
new record is to be inserted in search order
If there is a free block (i.e., space left after
deletion), then new record is inserted there. Else
Insert the new record in an overflow block.
In either case, adjust the pointer so as to chain
the records together in search key order
CCP505.10 8
Example
The following figure shows the file after insertion of the record
AA339 Ernakulam 1000
Easy to understand
Do not waste disk space
Ordering of records can be easily
maintained.
CCP505.10 10
Drawbacks of Sequential File
Organisation
CCP505.10 11
Drawbacks Of Sequential File
Organisation (contd..)
Reorganizations are costly, and must be done
during times when system load is low
Insertion or deletion of records leads to creation of
new file
The frequency with which reorganizations are
needed depends on the frequency of insertion of
new records
CCP505.10 12
Summary
In Sequential File organisation, the records are
stored in sequential order, according to the value
of “search key” of each record.
A sequential file is designed for efficient
processing of records in sorted order based on
search key
To permit fast retrieval of records in search key
order, the records are chained together by
pointers.
CCP505.10 13
Quiz
CCP505.10 14
Quiz
1. Sequential file organisation is suitable in the
case of
CCP505.10 15
Frequently asked questions
CCP505.10 16
Assignment
CCP505.10 17