The Relational Database Flashcards
What is a database
A database is an organized collection of data used for the purpose of modeling some type of organization or organizational process
What are the two kinds of databases
The two kinds of databases are operational databases and analytical databases
What is OLTP
OLTP means online transaction processing
What kind of databases are used in OLTP
Operational databases are used in online transaction processing
What is an operational database for?
operational database is dynamic. It changes constantly. It always reflects up to the minute information. Used when there is need to collect, modify, and maintain data on a daily basis
What is OLAP
OLAP is online analytical processing
What is OLAP used for?
When there is a need to store and track historical and time-dependent data to track trends, view statistical data over time, make tactical or strategic business projections.
What were early database models?
Hierarchical database and network database were early database models
What is a hierarchical database
A hierarchical database is an inverted tree branches flowing from the route
What is the parent child relationship in a hierarchical database
A parent table can be associated with one or more child tables but a single child table can be associated with only one parent table
What is one problem with a hierarchical database?
Users must be very familiar with the structure of the database as users must access data by starting at the route table and working down through the tree to the target data
What are two benefits of a hierarchical database
- the user can retrieve data very quickly because there are explicit links between the table structures
- the referential integrity is built in and automatically enforced the child must be linked automatically to a parent and if the parent is deleted the child will also be deleted
What is another problem with hierarchical databases?
Every item must have a parent, rules cannot be bent without breaking them, every piece of data must be related to another piece of data, it cannot support complex relationships
What is redundant data
Redundant data is when data is entered into two places unnecessarily
What is a network database model
network database model is represented in terms of nodes and set structures
What are nodes?
Nodes represent a collection of records
What are set structures?
Set structures establishes and represents a relationship and the network database