The Relational Database Flashcards

1
Q

What is a database

A

A database is an organized collection of data used for the purpose of modeling some type of organization or organizational process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two kinds of databases

A

The two kinds of databases are operational databases and analytical databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is OLTP

A

OLTP means online transaction processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What kind of databases are used in OLTP

A

Operational databases are used in online transaction processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an operational database for?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is OLAP

A

OLAP is online analytical processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is OLAP used for?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What were early database models?

A

Hierarchical database and network database were early database models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a hierarchical database

A

A hierarchical database is an inverted tree branches flowing from the route

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the parent child relationship in a hierarchical database

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is one problem with a hierarchical database?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are two benefits of a hierarchical database

A
  1. the user can retrieve data very quickly because there are explicit links between the table structures
  2. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is another problem with hierarchical databases?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is redundant data

A

Redundant data is when data is entered into two places unnecessarily

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a network database model

A

network database model is represented in terms of nodes and set structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are nodes?

A

Nodes represent a collection of records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are set structures?

A

Set structures establishes and represents a relationship and the network database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How is set structure different than parent child relationships

A

Node of owner and node member, transparent instruction relating a pair of nodes together, supports one to many relationship,

19
Q

How does the owner member structure work

A

Owner can have many members, but a member can have only one owner, a member cannot exist without a relationship to an owner node

20
Q

What are set structures

A

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

21
Q

Why is a network database better than a hierarchical database?

A

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

22
Q

What did Codd believe could be solved in databases by using mathematics?

A

Data redundancy, week data integrity, database structures over dependence on physical implementation

23
Q

Relational database model is based on what kind of math?

A

Relational database model is based on set theory and first order predicate logic

24
Q

What is a tuple?

A

A TU PL E is a record or attribute Or field in other words a part of a table

25
Q

Does the order of the table matter

A

No the order of the table is imaterial

26
Q

Why is a relational database an improvement from previous databases

A

users do not need to know the physical location of a record in order to retrieve its data

27
Q

What are the categories of relationships in a relational database

A

121, one too many, and many to many

28
Q

What does the user of a relational database need to understand

A

The user needs to be familiar with the relationships among the tables in the database then he can access data and an almost unlimited number of ways

29
Q

Do tables need to be related in a relational database

A

No they do not need to be directly related

30
Q

What is SQL

A

Structured query language

31
Q

What is the purpose of structured query language

A

Structured query language is the process for accessing a relational database. Understanding structured query language will help you to build your queries and understand and troubleshoot your database

32
Q

What are the four advantages of relational databases?

A

Built in multilevel integrity, logical and physical data independence From database applications, guaranteed data consistency and accuracy, easy data retrieval

33
Q

What is multi level integrity

A

Table level: cannot duplicate records, detect missing key values. Relationship: ensure relationship between a pair of tables is valid. Business: accurate data in terms of the business

34
Q

What is logical and physical data independence from database applications?

A

Changing the data will not change the software or the applications that use the data

35
Q

What is guaranteed data consistency and accuracy?

A

The integrity of each level creates consistency and accuracy

36
Q

What is easy data retrieval

A

Being able to retrieve data from a particular table or any number of related tables easily

37
Q

Why did relational databases run slowly and how has technology improves

A

Hardware was unable to keep up with the speed required for databases to reach their full potential but now processing power of computers is cheap and has become an insignificant issue

38
Q

What is a relational database management system RDBMS

A

RDBMS is a software application program you use to create, maintain, modify, and manipulate a relational database

39
Q

What is the client server model of databases

A

Data resides on server computer and clients interact with the data through an application that resides on their own computers or database client machine. This allows for data integrity and data security on the database server. The client can use the data without affecting the data integrity or security

40
Q

What is object oriented model

A

No longer is there a clear separation between the database software and the application programming software. Object-oriented database model has no specific theoretical foundation. There is no cohesive definition

41
Q

What is OMG?

A

OMG: object management group a nonprofit international group that addresses the issues of object standards. It is not a standards body such as the American national standards Institute. It is an advisory and certification group

42
Q

How is OM different than a relational database

A

OMG allows video clips photographs MP3s to be included in a database

43
Q

What is a data warehouse?

A

A data warehouse allows organizations to access data stored in any number of nonrelational databases