1. Introduction to Databases Flashcards
(98 cards)
What is data?
Data is numeric, textual, visual, or audio information that describes real-world systems.
Data is used for various tasks such as forecasting weather and analyzing financial investments.
Name the important ways data can vary.
- Scope
- Format
- Access
Scope pertains to the amount of data, format refers to the type of data (numbers, text, etc.), and access relates to whether data is private or public.
What is the historical difference between analog and digital data?
Historically, data was mostly analog, while today it is mostly digital, encoded as zeros and ones.
Analog data was stored on physical media like vinyl disks and celluloid tapes.
What is a database?
A database is a collection of data in a structured format, typically stored on computers.
Databases ensure that similar data is stored in a standardized manner.
What is a database management system (DBMS)?
A DBMS is software that reads and writes data in a database, ensuring data security and availability.
DBMSs are complex due to the challenges of managing large databases with many users.
What is a query?
A query is a request to retrieve or change data in a database.
Query languages are specialized for efficient interaction with databases.
What does a database application do?
A database application helps business users interact with database systems.
It simplifies user experience and ensures efficient and secure data access.
Fill in the blank: A _______ is a request to retrieve or change data in a database.
query
What roles interact with databases?
- Database Administrator
- Database Designer
- Database Programmer
- Database User
Each role has specific responsibilities related to database management and use.
What is the responsibility of a database administrator?
A database administrator secures the database system against unauthorized users and manages user access.
They enforce procedures for database availability.
What does a database designer do?
A database designer determines the format of each data element and the overall database structure.
This role balances priorities like storage and response time.
What is the difference between a database programmer and a database user?
A database programmer develops applications using database query languages, while a database user consumes data from the database.
Users typically interact through applications.
What are the limitations of file systems compared to database systems?
- Performance
- Authorization
- Security
- Rules
- Recovery
File systems cannot adequately manage large, complex databases with many users.
What is a transaction in the context of databases?
A transaction is a group of queries that must be either completed or rejected as a whole.
This ensures data consistency and correctness.
True or False: A transaction can be partially completed.
False
All queries in a transaction must succeed or fail together to maintain data integrity.
What is the role of a database user?
A database user requests, updates, or generates reports from stored data.
Users can access databases via applications or directly submit queries.
Fill in the blank: A _______ is responsible for defining the detailed database design.
database designer
What does a database system ensure regarding data?
Database systems ensure data is consistent with structural and business rules.
This includes synchronizing multiple copies of data across locations.
What is a transaction in database systems?
A group of queries that must be either completed or rejected as a whole.
What happens if some queries in a transaction succeed while others fail?
It results in inconsistent or incorrect data.
What must database systems ensure when processing transactions?
- Transactions are processed completely or not at all
- Prevent conflicts between concurrent transactions
- Ensure transaction results are never lost
True or False: A transaction must process either both queries or neither query.
True
What is the role of the transaction manager in a database system?
Ensures transactions are properly executed and restores the database to a consistent state in case of failure.
What is the purpose of the log in a database system?
Contains a complete record of all inserts, updates, and deletes processed by the database.