Comp 2: Relational Databases Flashcards

1
Q

What is a DB model?

A

Conceptual framework for a DB.

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

What were the leading DB models in the 1960s?

A

hierarchic and network

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

Who was the original creator of the relational model?

A

E.F Codd

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

What are primary examples of a Hierarchical, Network, Relational, and NoSQL DBS?

A

Hierarchical: IMS
Network: IDMS
Relational: MySQL, Oracle, SQL Server
NoSQL models: MongoDB, Redis, Cassandra, Neo4j

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

Why were relational DBs not used right away?

A

processing speeds sucked

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

What are three parts of the relational model?

A
  1. Data structure that says how data is organized.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between a domain, tuple, and relation?

A

Domain: Data Type
Tuple: Row
Relational: Table

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

How do attributes relate to tuples?

A

Attribute is name for each tuple position. Basically, column headers.

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

What are 7 relational operations?

A

SELECT, project, product, JOIN, UNION, INTERSECT, difference

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

What are relational (or integrity) rules?

A

logical constraints that make sure data is valid

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

What are structural rules?

A

Relational rules that are present in every relational DB.

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

Give 3 examples of structural rules

A

Unique Primary Key, Unique Column Names, No duplicate rows.

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

What are business rules?

A

relational rules specific to a particular DB.

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