Relational Model Flashcards

1
Q

A relational database consists of

A

a collection of tables each with a unique name

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

Terminology: Relation

A

same as table

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

Terminology: Tuple (or Record)

A

same as row or record
a record is a group of related attributes
identifiable by its primary key (or candidate key)

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

Terminology: Attribute (fields or columns)

A

same as column or field, a field is used to store an individual item of data

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

In relational database, no two rows with same values in all ________ positions

A

column

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

All values within a column in a relation have the _______ type

A

same;
simple type only
no complex values such as sets or other rows

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

Candidate Key

A

candidate key is an attribute or combination of attributes that uniquely identifies rows in a table

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

Primary Key

A

there can be more than one candidate from which the primary key is chosen

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

foreign key

A

an attribute or combination of attributes that match attribute(s) in another table

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