In the file-processing system, the data are stored in the form of files, and a number of application programs are written by programmers to add, modify, delete and retrieve data to and from appropriate files. New application programs are written as and when needed by the organization. For example, consider a bookstore that uses a file-processing system to keep track of all the available books. The system maintains a file named BOOK to store the information related to books. This information includes the book title, ISBN, price, year of publishing, copyright date, category, number of pages, name of the author and the name and address of the publisher.
In addition, the system has many application programs that allow users to manipulate the information stored in the BOOK file. For example, a system may contain programs to add information about a new book, modify any existing book information, print the details of books according to their categories, etc. If a need arises to keep additional information about the publishers of the books, which include the phone number and email id, the system creates a new file, say PUBLISHER, which includes the name, address, phone number and email id of the publishers. New application programs are written and added to the system to manipulate the information in the PUBLISHER file. In this way, as time goes by, more files and application programs are added to the system.
The file-processing system has a number of disadvantages that lead to the development of database systems. These disadvantages are given below:
BOOK file as well as in the PUBLISHER file. This duplication of data is known as data redundancy, which leads to wastage of storage space. The other problem with the file-processing system is that the data may not be updated consistently. Suppose a publisher requests for a change in his address. Since the address of the publisher is stored in the BOOK as well as the PUBLISHER file, both the files must be updated. If the address of the publisher is not modified in any of the two files, then the same publisher will have different addresses in two different files. This is known as data inconsistency.BOOK file. In addition, when new constraints are to be enforced, all the application programs should be changed accordingly.struct or class. Suppose the data type of the field ISBN is changed from string to number, changes have to be made in all the application programs that are accessing the BOOK file.First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.