EER to Relational Model Flashcards

1
Q

Tuple

A

One row of a relation

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

Attribute

A

One column of a relation

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

Relation

A

An entire table of related attributes

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

Domain of an Attribute

A

All the possible values an attribute is allowed to have

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

Table is a:

A

Relation

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

Column Header is a:

A

Attribute

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

All possible column values are:

A

Domain

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

Row is a:

A

tuple

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

Table Definition:

A

Schema of a relation

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

Populated table:

A

State of the relation

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

SuperKey of R

A

A subset of the relation attributes where all the tuple values must be distinct

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

A key is a:

A

minimal superkey

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

Candidate Keys

A

Unique keys that could have been chosen to be the primary key

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

Primary Key

A

An arbitrarily chosen candidate key (requires uniqueness)

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

ER to Relational Schema:

A
  1. Map regular entities
    Separate attributes
  2. Map weak entities
    Weak entities get foreign key of their parent entity
  3. Map M:1 Relationships
    the M side gets the foreign key
  4. Map 1:1 Relationships
    both sides get the foreign key, ore could merge the
    table, or could have an intermediate table
  5. Map M:N relationships
    create a new table with the foreign keys
  6. Map multi valued attributes
    Create a new table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Foreign Key

A

Same domain as the primary key that it maps from, but could have different names

17
Q

Referential Integrity

A

Controlled through semantics. If you delete a primary key that is a foreign key elsewhere, you have to fix that

18
Q

Illegal States: Delete

A

Restricted: Delete is restricted from happening
Cascades: Removes offending entry
Nullifies: FK is set to null

19
Q

Illegal States: Update

A

Restricted: Update is restricted
Cascade: Change the values for all offending entries