1. Serial and sequential file organisation
In both serial and sequential files, records are stored one after the other. The difference is the order. A serial file stores records in chronological order: each new record is appended to the end. A sequential file stores records in the order of the key field.
Adding a record to a sequential file means inserting it in the correct position. Updating a sequential file means a new version of the file has to be created.
Examiner insight
Worked example 14 marks
Compare sequential and serial methods of file organisation.
- 1
In both, records are stored one after the other and need to be accessed one after the other. [1]
- 2
Serial files are stored in chronological order. [1]
- 3
Sequential files are stored with ordered records, in the order of the key field. [1]
- 4
In serial files new records are appended to the file. In sequential files new records are inserted in the correct position. [1]