Difference Between Flat File & Relational Database

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Table structures in databases organize data in rows and columns.

A flat file database stores data in a single table structure. A relational database uses multiple table structures, cross-referencing records between tables. Tables in both organize records in rows, with each column containing a single piece of data in the record.

Advertisement

History

Flat file databases were a natural development early in computing history. The relational database model was developed and implemented in the early 1970's, primarily by IBM.

Video of the Day

Flat File Databases

Flat file databases are typically plain text files that store one record per line, with record fields delimited by whitespace or a delimiting character. Flat file databases can be read directly by a variety of software applications.

Advertisement

Relational Database

In addition to the data tables, relational databases use "indexes" to quickly find records based on search criteria. Relational databases generally require a relational database management system (RDBMS) to manage and access the data.

Advertisement

Advertisement

Benefits

Flat file databases are simple and portable, and typically can be used without requiring special software. Relational databases are faster, more efficient and more powerful than flat files. Most RDBMSs provide database access over networks.

Advertisement

Software

Software originally based on a flat file database structure included FileMaker, Berkeley DB, and Borland Reflex. Popular modern relational database systems include Oracle, MySQL and PostgreSQL.

Advertisement

Advertisement

references

Report an Issue

screenshot of the current page

Screenshot loading...