0% found this document useful (0 votes)
23 views1 page

Text 2

Flat-file databases consist of a single table, leading to data redundancy which wastes space and complicates data entry and updates. Relational databases use multiple tables linked by relationships to eliminate repetition and improve efficiency. Establishing relationships requires identifying matching fields, with one serving as a primary key.

Uploaded by

Harrypotter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Text 2

Flat-file databases consist of a single table, leading to data redundancy which wastes space and complicates data entry and updates. Relational databases use multiple tables linked by relationships to eliminate repetition and improve efficiency. Establishing relationships requires identifying matching fields, with one serving as a primary key.

Uploaded by

Harrypotter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Flat-File Databases

A 'flat-file' database is one that only contains a single table of data. All of the
data in the database is stored in this one place.

Relational Databases
A 'relational' database is one that contains two or more tables of data, connected
by links called relationships.

Why would you want to have more than one database table?
Flat files sometimes has a lot of repetition. This is called data redundancy
Repeated data in a database is generally considered a bad thing:
• It wastes space in the database
• It takes time to input, typing the same data over and over (and
mistakes may be made)
• It is a pain to update

Multiple Tables
The solution is to split the data: The repeating data is removed from the main
table, and placed in a table of its own...

Linking Tables - Relationships


When we create a relationship between two tables, we need to identify two fields we
can use to link the two tables. The two fields must have the same data and one of
the fields must be a primary key in one table.

You might also like