Week 3 Flashcards

1
Q

What is a relation?

A

A table with columns and rows

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

What is an attribute?

A

A named column of a relation (table)

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

What is a domain?

A

A set of allowable values for one or more attributes.

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

What is a tuple?

A

A row

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

What does ‘degree’ mean?

A

The number of attributes in a relation (table)

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

What does ‘cardinality’ mean?

A

Number of tuples in a relation (table)

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

What are some properties of database relations?

A

Relation name is distinct from all other relation names
Each cell in a relation contain one and only one value
Each attribute has a distinct name
There are no duplicate tuples (rows)
Order of attributes have no significance

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

What is a foreign key?

A

Is an attribute in one relation that is also a primary key in another relation

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

What does entity integrity mean?

A

In a base relation, no attribute of a primary key can be null

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

What does referential integrity mean?

A

If a foreign key exists in a relation, either the foreign key value must match the candidate key value of some tuple in its home relation OR foreign key value must be null

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

What are some functions of a system catalog?

A

Provides powerful and flexible security
Allows users to access data in a customized way
Can simplify complex operations on base relations

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