Databases vs. Flat Files – Lecture Review

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts, history, terminology, and comparative strengths and weaknesses of flat files and relational databases discussed in the lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

What is a flat file database?

A simple database that stores all data in a single table with no indexes, keys, or relationships between rows.

2
New cards

What is a delimiter in the context of flat files?

A sequence of one or more characters (e.g., comma or semicolon) that marks the boundary between fields in plain-text data.

3
New cards

Why do flat files become difficult to manage as the volume of data grows?

Because queries are slow without indexes, redundancy increases storage needs, and there are no built-in relationships to organize the data.

4
New cards

Who introduced the relational database model and in what year?

British computer scientist Edgar Codd in 1970.

5
New cards

Which language did IBM develop to interact with relational databases?

SQL (Structured Query Language).

6
New cards

Why was Oracle’s 1979 release significant?

It was one of the first commercial relational database products and helped popularize the relational model.

7
New cards

List three advantages relational databases have over flat files.

Greater efficiency in storage/retrieval, better scalability (can be partitioned across servers), and flexibility through support for complex relationships.

8
New cards

How do relational databases reduce data redundancy?

By storing each piece of data once in its own table and linking related tables through keys.

9
New cards

What is a spreadsheet, in database terminology?

A row-and-column grid application (e.g., Excel) often used as a modern form of a flat file.

10
New cards

Name two pioneering spreadsheet programs from the late 1970s–early 1980s.

Visicalc (1979) and Lotus 1-2-3 (1983).

11
New cards

State four common weaknesses of flat files.

Data redundancy, increased security risk, potential data inconsistency, and limited flexibility/expandability.

12
New cards

How can data inconsistency arise in flat files?

Multiple copies of the same data may diverge if they are updated or entered incorrectly in different rows or files.

13
New cards

What is a NoSQL flat file database and give a popular example.

A database that stores unstructured or semi-structured data (often key-value pairs); MongoDB is a leading example.

14
New cards

In a relational database example, what column links the invoice and customer tables?

customer_id.

15
New cards

Why would a company like Amazon struggle using a single-table flat file?

The table would become enormous, highly redundant, and too slow and costly to process.

16
New cards

What role do indexes play in relational databases?

They speed up queries by enabling rapid lookup of rows that match specific criteria.

17
New cards

Before computerized databases, how were records typically organized?

As physical ledgers in file folders and filing cabinets, resembling today’s flat-file ‘boxes’ and ‘cards.’

18
New cards

What database-related idea did John Backus propose in 1959?

A specialized database and programming language to improve data retrieval for computers.

19
New cards

When might a NoSQL database be preferred over a relational one?

When very fast read/write operations or storage of unstructured/semi-structured data is required.

20
New cards

Define data redundancy.

The unnecessary duplication of the same data within or across files, wasting space and risking inconsistencies.

21
New cards

What key security limitation do flat files have?

They rely on operating-system file permissions, and multiple redundant copies increase exposure to unauthorized access.

22
New cards

Why are relational databases considered more scalable than flat files?

They can partition data across multiple servers and efficiently manage large datasets with indexes and optimized storage structures.

23
New cards

What is the purpose of a delimiter?

To indicate where one field ends and the next begins in a plain-text data stream.

24
New cards

What drove the evolution from flat files to relational databases?

The need for more efficient, scalable storage and the ability to perform complex queries on related data.

25
New cards

Give three common applications that rely on relational databases.

Enterprise Resource Planning (ERP) systems, Customer Relationship Management (CRM) systems, and data warehouses.