Back to marketplace

Chapter 8 (Section 1) Final Revision #1

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Section 1: Database Fundamentals

Back (Answer)

#2
Front (Question)

What is the definition of a database?

Back (Answer)

A structured collection of data items that are accessible by various applications.

#3
Front (Question)

What is a relational database?

Back (Answer)

A database that links data items together via the use of internal pointers, where data is stored in different tables which are linked using primary and foreign keys.

#4
Front (Question)

In a database context, what is a table?

Back (Answer)

A group of similar data organized into rows (for entities) and columns (for attributes).

#5
Front (Question)

Define a “Record” or “Tuple.”

Back (Answer)

A row in a table that represents a single instance of an entity.

#6
Front (Question)

Define a “Field” or “Attribute.”

Back (Answer)

A column/attribute in a table representing a specific data item or characteristic stored about an entity.

#7
Front (Question)

What is an “Entity”?

Back (Answer)

Anything about which data can be stored, such as a person, event, or object.

#8
Front (Question)

What is the purpose of “Indexing” in a database?

Back (Answer)

To optimize search operations by creating a structure for fast data retrieval based on specific columns.

#9
Front (Question)

Section 2: File-Based vs. Relational Approach

Back (Answer)

#10
Front (Question)

How is a file-based system defined?

Back (Answer)

A collection of data items structured as records, where each record contains fields about the same object.

#11
Front (Question)

What are the three primary data problems associated with file-based systems?

Back (Answer)

• Duplicate data (redundancy). • Format inconsistency. • Inconsistent data across different files.

#12
Front (Question)

Why is “Storage Wastage” a limitation of file-based systems?

Back (Answer)

Duplicated data across multiple files wastes storage space and increases data redundancy.

#13
Front (Question)

Explain the limitations of a file-based approach (why a file-based approach is not better than a relational database).

Back (Answer)

• Flat-file has more data redundancy: the same data is stored many times (in relational, data is stored in different tables which are linked). • There is program-data dependence with flat-files: any changes to the structure of the data means the programs that access that data have to be re-written. • Flat-file has more data inconsistency // worse data integrity: duplicated data might be stored differently; when data is updated in one place, it is not updated everywhere. • It is not easy to perform complex searches/queries: a new program has to be written each time. • Flat files could have a lack of privacy: user views cannot easily be implemented.

#14
Front (Question)

Describe the advantages of using a relational database compared to a file-based approach.

Back (Answer)

• Reduced data redundancy // less repeated data: each item of data is only stored once because linked tables mean each data item is stored only once. • Maintains data consistency // improves data integrity: changes in one table will automatically update in another; linked data cannot be entered differently in two tables; only needs to be updated once. • Program-data independence: the data is separate from the software, so changes to the data do not require programs to be re-written. • Complex queries are easier to run. • Can provide different views: so users can only see specific aspects of the database.

#15
Front (Question)

What is “Data Independence” in a relational database?

Back (Answer)

The ability to perform diverse queries without being limited by the specific structure of the data or the software; data is separate from the software so structural changes do not require programs to be re-written.

#16
Front (Question)

How does a relational database handle data updates differently than a file-based system?

Back (Answer)

Data changes are instantly available across all applications because information is stored only once, ensuring consistency.

#17
Front (Question)

List the three main functions of a database management system.

Back (Answer)

• Adding new files. • Inserting/retrieving/updating data. • Cross-referencing data for analysis.

#18
Front (Question)

Section 3: Database Keys

Back (Answer)

#19
Front (Question)

What is a Candidate Key?

Back (Answer)

An attribute/field (or set of attributes/fields) that could be a primary key — the smallest set of attributes that can uniquely identify a record without duplication.

#20
Front (Question)

How does a Candidate Key differ from a Primary Key in theoretical terms?

Back (Answer)

A candidate key is any attribute or set of attributes that could uniquely identify a record; the primary key is the specific candidate key selected by the designer to perform that role.

#21
Front (Question)

What is a Primary Key?

Back (Answer)

A unique identifier for a table selected from the available candidate keys.

#22
Front (Question)

Define a Secondary Key.

Back (Answer)

An alternative unique identifier used for accessing records.

#23
Front (Question)

What is the theoretical role of a Secondary Key?

Back (Answer)

It serves as an alternative identifier for a record, used primarily to provide a different path for searching or indexing data without replacing the primary key.

#24
Front (Question)

What is a Foreign Key?

Back (Answer)

A field/attribute in one table that is linked to a Primary Key in another table; it links records in one table to the primary key of another table.