Tables and Keys Flashcards

1
Q

Columns

A

Define a single attribute

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

Row

A

Individual entry representing the principle subject of the table

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

Primary Key

A

Attribute that uniquely identifies a specific row/entry. Typically the first column. Must be unique

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

Surrogate (Primary Key)

A

Key that has no mapping to anything in the real world. (sequential employee ID number)

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

Natural (Primary Key)

A

Key that has some purpose outside of the database. (social security number)

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

Foreign Key

A

Stores a Primary Key helps define relationships between multiple DB tables. This also Includes new relationships to the Primary Key within the same table (get better definition)

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

Foreign Key Relationships

A

Relationships between tables can be made more robust by abstracting a meaningful attribute from a table’s Primary Key and using that as another table’s Foreign Key link back to the original table

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

Composite Key

A

A Key represented by two or more columns. The individual columns might repeat, but the composite will be unique

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

Foreign Primary Composite Key

A

These most meaningful keys can create the logic for tables and represent additional data

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