Database Theory and Design Flashcards
Define a Database (DB)
An organized collection of related data
Define a Database Management System (DBMS)
Software that manages and controls access to the database
Define Database application
Program that interacts with the database at some point in its execution
Define a Database System
A collection of programs that interact with the database
What are two ways of storing and managing data?
- File-based System
- Database System
Define a File-based System
A group of software tools that help users do different tasks. Each program stores and manages its own data separately
Define a Database System
Software that helps store, manage, and organize data in an easy-to-access way. It allows users to save, update, and retrieve data quickly and securely
What are the advantages of a File-based approach?
User Control
- End user has total control of the stored data
- Can modify application or data at will
Applications and data file can be optimised for particular tasks
What are the disadvantages of a File-based approach?
- Data duplication
- Data dependence
- Incompatible file formats
- Proliferation of application programs (APPS)
What is Data Duplication
If a record is duplicated in each of the 3 files, a change to the record requires a change to all 3 files.
Integrity of student records may be compromised if the files are not all updated - which file holds the correct information.
What is Data Dependence
The way data is stored affects how it can be used, making the data and the program tightly connected
What are imcompatible file formats
If application programs are separatly implemented to data files, then the data files may be incompatible with the application program
Meaning the data files would have to be translated to fit the application program
What is the Proliferation of application programs?
If you wanted more information out of data files than initially anticipated
You would have to add more application programs to handle new queries
Leading to the proliferation of files and application programs that each official has to handle
How does a database approach address the limitation of an application program?
The data is stored in a DB, which is then accessed by DBMS.
When officials need info from the DB they write queries in SQL to communicate with the DBMS which in turn gives them what they need
What is a DBMS
Software that interacts with users’ application programs and the DB
Define a Database Management System (DBMS)
Software system that enables the user to define, create, maintain and control access to the database
What does an End-user do?
Run applications to perform specific database operations
What does an Application Developer do?
Use a programming language to provide the required functionality for the end users
What does a Database Designer do?
Ensures the database is well-organized, secure, and works efficiently
What does a Database Administrator (DBA) do?
Responsible for implementation and monitoring of the database
What are the 13 advantages of a DBMS?
- Control of data redundancy
- Data Consistency
- Sharing of data
- Improved data integrity
- Improved Security
- Enforcement of Standards
- Economy of Scale
- Balance of conflicting requirements
- Improved data accessibility and responsiveness
- Increased Productivity
- Improved maintenance through data independence
- Increased concurrency
- Backup and Recovery services
What is Control of Data Redundancy?
Since all data is now stored in a single database, there are no unnecessary multiple copies of data
What is Data Consistency?
Only one copy of each data item
(changes only have to be made to 1 item, therefore if there was multiple and they werent all changed data wouldnt be consistent)
How would an organization share data to people inside it?
Since data is common to the organization, it’s easy for all authorized users to have access to the same data