Week 5 Flashcards

1
Q

What are entity supertype and subtypes?

A

A subtype entity inherits the properties of the supertype entity (attributes and relationships) from the supertype entity. The subtype contains the unique attributes.

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

How are relationships between subtypes and supertypes described?

A

Relationships are described in terms of “is-a” relationships

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

What are some “key” things about inheritance?

A
  • All entity subtype subtypes inherit attributes and relationships of the supertype
  • All entity subtypes inherit their primary key attribute from their supertype
  • At the implementation level, supertype an its subtypes maintain a 1:1 relationship
  • Subtypes inherit all relationships in which supertype participates
  • Lower level subtypes inherit all attributes and relationships from its all upper level supertypes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a specialization hierarchy?

A

A specialization hierarchy depicts the parent-child relationship between a supertype and subtype.

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

What is an ERR model?

A

An extended entity relationship model (EER) is a type of ERD that presents the specialization hierarchy.

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

What are disjoint subtypes and overlapping subtypes?

A
  • Disjoint Subtypes
    Subtypes that contain unique subset of supertype entity set
  • Overlapping Subtypes
    Subtypes that contain nonunique subsets of supertype entity set
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is partial completeness and total completeness?

A
  • Partial completeness
    Not every supertype occurrence is a member of a subtype
  • Total completeness
    Every supertype occurrence must be a member of any.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the guidelines for a primary key?

A

A primary key should be:

  • An attribute or combination of attributes that uniquely identifies entity instances in an entity set
  • Main function is to uniquely identify an entity instance or row within a table
  • To guarantee entity integrity, not to “describe” the entity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some more guidelines for primary keys?

A

Primary keys should be:

  • Non intelligent
  • No change over time
  • Preferably single-attribute
  • Preferably numeric
  • Security compliant
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When should use composite primary keys?

A

You should use composite primary keys when:

  • There is a weak entity. Composite primary keys are normally used in this case to represent a real world object that is existent dependent on another real world object. Also used when a real world object that is represented in data model as two separate entities in strong identifying relationship
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are surrogate keys?

A

A surrogate key is a unique identifier for an entity instance. Surrogate keys are used when there is:
- No natural key
- Selected candidate key has embedded semantic contents
- Selected candidate key is too long or cumbersome

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

What is a natural key?

A

A natural key (or natural identifier) is a real world, generally accepted identifier used to uniquely identify real-world objects.

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