What is the role of the query processor in a database system?
The query processor ensures the most efficient instructions are executed on the data.
What does the storage manager do in a database system?
Database sizes can range from megabytes to many terabytes.
What is the function of the transaction manager?
The transaction manager plays a crucial role in maintaining data integrity.
What is contained in the log of a database?
A complete record of all inserts, updates, and deletes processed by the database
The transaction manager writes log records before applying changes to the database.
How does the transaction manager use log records in the event of a failure?
Uses log records to restore the database
This process ensures data integrity and consistency.
What is the catalog in a database system also known as?
Data dictionary
It is a directory of tables, columns, indexes, and other database objects.
What information does the catalog provide to other components?
Information to process and execute queries
The catalog is essential for the functioning of the database system.
What data type is used to store integer values?
INT
INT is a common data type in databases for storing whole numbers.
What data type is used to store fractional numeric values?
DECIMAL
DECIMAL allows for precise storage of numbers with decimal points.
What data type is used to store textual values?
VARCHAR
VARCHAR is used for variable-length strings in databases.
What data type is used to store year, month, and day?
DATE
DATE is specifically designed to handle date values in databases.
The principle that physical design never affects query results is called?
data independence
API
A library of procedures or classes that links a host programming language to a database
A database model
a conceptual framework for database systems, with three parts:
1. Data structures that prescribe how data is organized.
2. Operations that manipulate data structures.
3. Rules that govern valid data.
Data Structure Terms
Mathmatical and file term for Table
Relation and File
Mathmatical and file term for column
Attribute and Field
Mathmatical and file term for Row
Tuple and Record
Mathmatical and file term for Data Type
Domain and also Data Type
What is the purpose of the Select operation in relational operations?
Select selects a subset of (or all) rows of a table
This operation is fundamental for retrieving specific data from a table.
What does the Project operation do in relational operations?
Project selects one or more columns of a table
This operation allows for focusing on specific attributes of the data.
What is the result of the Product operation in relational operations?
Product lists all combinations of rows of two tables
This operation is also known as the Cartesian product.
How does the Join operation function in relational operations?
Join combines two tables by comparing related columns
This operation is essential for merging data from different tables based on a common attribute.
What does the Union operation do in relational operations?
Union selects all rows of two tables
This operation combines the results of two queries, eliminating duplicates.