Week 2 - Conceptual Modeling Flashcards
What are the 5 steps of Database design? Briefly describe them
- Requirement analysis - specify what is needed to be modeled in a real world domain
- Conceptual design - complete technology independent picture of the db
- Logical design - refine a conceptual model to a schema using the data model of a dbms
- Physical design - define the schema using DDL of the dbms
- Database creation - load data into the db
Define the following terms and draw examples,
1. Entity
2. Attributes
3. Relationship
4. Degree
5. Role
- A real world object distinguishable from other objects
- Each entity is described by a set of attributes.
- An association between two or more entities.
- Number of entity types involved in a relationship
- Part played by entities of a unary relationship
What are the 3 ways attributes can be classified as? Give examples.
- simple vs composite
- single value vs multi-value
- stored vs derived
What is a domain of an attribute?
The set of values an attribute may take
- What are key attributes?
- What is key constraint?
- A set of attributes for an entity type that are unique for each entity of that type.
- Every entity type must have at least one key attribute.
- What is cardinality ratio?
- List the three types of cardinality restraints. Show examples
- Number of relationships an entity can participate in.
1. 1-to-1
2. 1-to-N
3. N-to-M
What is a weak entity? List 2 properties.
An entity type without its own key
1. has a partial key
2. must participate in an identifying relationship with a strong entity type.
What are the concepts included in ERR model?
- Subclass and superclass
- Specialization and generalization
- Category or union type
- Attribute and relationship inheritance
Provide an example of Subclass/superclass concept
Give.
Give examples for specialization and generalization
Give.
What are disjointness and completeness constraints?
These two are independent properties.
Disjointness: Subclass of a specialization is disjoint. (give example)
Completeness: Maybe total or partial. (give example)