Section 1: Database Fundamentals
What is the definition of a database?
A structured collection of data items that are accessible by various applications.
What is a relational database?
A database that links data items together via the use of internal pointers.
In a database context, what is a table?
A group of similar data organized into rows (for entities) and columns (for attributes).
Define a “Record” or “Tuple.”
A row in a table that represents a single instance of an entity.
Define a “Field” or “Attribute.”
A column in a table representing a specific data item or characteristic stored about an entity.
What is an “Entity”?
Anything about which data can be stored, such as a person, event, or object.
What is the purpose of “Indexing” in a database?
To optimize search operations by creating a structure for fast data retrieval based on specific columns.
Section 2: File-Based vs. Relational Approach
How is a file-based system defined?
A collection of data items structured as records, where each record contains fields about the same object.
What are the three primary data problems associated with file-based systems?
Why is “Storage Wastage” a limitation of file-based systems?
Duplicated data across multiple files wastes storage space and increases data redundancy.
What is “Data Independence” in a relational database?
The ability to perform diverse queries without being limited by the specific structure of the data or the software.
How does a relational database handle data updates differently than a file-based system?
Data changes are instantly available across all applications because information is stored only once, ensuring consistency.
List the three main functions of a database management system.
Section 3: Database Keys
What is a Candidate Key?
The smallest set of attributes that can uniquely identify a record without duplication.
How does a Candidate Key differ from a Primary Key in theoretical terms?
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.
What is a Primary Key?
A unique identifier for a table selected from the available candidate keys.
Define a Secondary Key.
An alternative unique identifier used for accessing records.
What is the theoretical role of a Secondary Key?
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.
What is a Foreign Key?
An attribute or set of attributes that links records in one table to the primary key of another table.
What is a Composite Key?
A primary key consisting of a set of two or more attributes that together provide a unique identifier for a record.
What defines a “Composite Key” in a relational structure?
A set of attributes that, when combined, provide a unique identifier for a table that cannot be uniquely identified by a single attribute alone.