Week 2: Relational Databases Flashcards

1
Q

What is the hierarchical model? What is the problem with it?

A

Problem: repetition of data stored as children of other data.

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

What is the network data model? What is its problem?

A

Problem: representing many to many relationships

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

What is a key? what are its contraints?

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

What are some possible keys for the following table?

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

What are the following:

super key

Candidate key

Primary key

Foreign key

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

Example of key types

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

What are some key constraints?

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

What are the following for a relational DB?

Domain

Relation Schema R

Relation

Attribute

Tuple

Degree

Cardinality

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

What are the fomain, relation schma, Relation, R, attributes, degree, and cardinality of the following:

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

What is the cartesian product of two sets?

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

What are the following in a relational database table?

Relation

Attribute

Tuple

Cartesian product

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

What are the properties of relations?

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

What rule is there for creating a relational database from an ER diagram?

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

How is the following represented as a relational model?

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

How do you represent a 1 to Many relationship in an relational DB model?

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

How do you represent weak entities in relational DB model?

A
17
Q

How do you represent a 1 to 1 relationship in relational DB model?

A
18
Q

How do you represent a many to many binary relationship in a relationol DB model?

A
19
Q

How do you represent a multivalued attribute A in a relational DB model?

A
20
Q

How do you represent an n-ary relationship n>2 in a relational DB model?

A