0% found this document useful (0 votes)
47 views

File Approach

Traditional file-based systems involved separate application programs managing their own isolated data files. Each file contained a sequence of records of fixed length. For example, a student record file may contain records with fields for student ID, tutorial, and mark. This file-based approach led to limitations like data duplication, dependence between files, and inability to perform flexible queries without creating new programs. The database management system was developed to address these limitations by storing data in a centralized storage that could be accessed by multiple users and applications in a consistent way.

Uploaded by

Bishaka Samuel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

File Approach

Traditional file-based systems involved separate application programs managing their own isolated data files. Each file contained a sequence of records of fixed length. For example, a student record file may contain records with fields for student ID, tutorial, and mark. This file-based approach led to limitations like data duplication, dependence between files, and inability to perform flexible queries without creating new programs. The database management system was developed to address these limitations by storing data in a centralized storage that could be accessed by multiple users and applications in a consistent way.

Uploaded by

Bishaka Samuel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Traditional File-based Systems

File-based System (Predecessor to the DBMS) = A collection of application programs that perform services for the end-users such as the production of reports. Each program defines and manages its own data.

Traditional File-based Systems


o Information are stored in data files o Each file is a sequence of records
Sno SL21 SG37 SG14 Lname White Beech Ford Position Manager Snr Asst Deputy NIN WK440211B WL432514C WL220658D Bno B5 B3 B3

Traditional File-based Systems


A student record reporting program:
Struct STUDENT_RECORD { char StudentID[8]; char Tutorial[3]; int Mark; }; /*totally 15 bytes*/ STUDENT_RECORD std_recs[50]; fread(stud_recs, 15,50,file); /*read 50 student records*/

o Eg., if each record contains 100 bytes of data, then the 1st record occupies the 1st 100 bytes in the file, the 2nd record occupies the 2nd 100 bytes in the file.

File-Based Approach - 1

File-Based Approach - 2

File-Based Approach - 3

Traditional File-based Systems


An example: DreamHome, A property agent company

Traditional File-based Systems

Traditional File-based Systems


Limitations of File-Based Approach: o Separation and isolation of data o Duplication of data o Data dependence o Incompatibility of files o Fixed queries / proliferation of application programs
Reading: Database Systems (Connolly 2/ed) P. 12-14 Limitations of File-Based Approach

File-Based Approach - 4

File-Based Approach - 5

File-Based Approach - 6

CS3462 Introduction to Database Systems Helena Wong, 2001

You might also like