When files must be related (customers to orders, vendors to purchases, etc.), a relational database manager is used, not a flat file manager. Flat files can be related, but only if the ...
Using flat file databases can lead to insertion, deletion and update anomalies. Use of relational databases where primary and foreign keys are used to link tables helps overcome these issues.