The Relational Database Flashcards
(43 cards)
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
How is set structure different than parent child relationships
Node of owner and node member, transparent instruction relating a pair of nodes together, supports one to many relationship,
How does the owner member structure work
Owner can have many members, but a member can have only one owner, a member cannot exist without a relationship to an owner node
What are set structures
Set structures are the way that data is related to each other, you cannot change a set structure without affecting the application program that use the structure to navigate the data, if you change a set structure, you also change all references from within the application to that structure
Why is a network database better than a hierarchical database?
Fast data access, users can create queries that are more complex, however users must be very familiar with the structure of the database and its set structures
What did Codd believe could be solved in databases by using mathematics?
Data redundancy, week data integrity, database structures over dependence on physical implementation
Relational database model is based on what kind of math?
Relational database model is based on set theory and first order predicate logic
What is a tuple?
A TU PL E is a record or attribute Or field in other words a part of a table