Quiz 1 Flashcards
- Defined as a concisely written set of users’ requirements, and should be specified in as detailed and complete a form as possible?
Data Requirements (91/92)
- Requirements that are user operations or transactions that will be applied to the database and may include both retrievals and updates.
Functional Requirements (92)* Not specified in ER diagram
- This class of design is usually easier to communicate to non-technical users because it doesn’t contain implementation details.
Conceptual Design (93)
- This class of design is often referred to as the implementation data model.
Logical Design (93)
This class of design includes the internal storage structures, file organizations, indexes, and access paths.
Physical Design (93)
- What are the two types of existence for entities in the Entity Relationship (ER) model (give an example of each type)?
a. Physical existence, example: a snowboard (94)
b. Conceptual existence, example: a company (94)
- These become a major part of the data stored in the database and describe each entity.
Attributes (94/95)
Types: composite vs simple, derived vs store, key vs non-key
Single vs multi-valued
Complex attributes (ie address-phone)
- These types of attributes are helpful to model an address when the user needs to refer to each part of the address independently (i.e., state, city, zip code, etc…).
Composite Attributes (96) (opposite is atomic)
- How do we specify the type of attribute from question 8 on an entity relationship (ER) diagram?
Show the composite attribute extending from the entity, then show the simple attributes extending from the composite attribute (114)
- With these types of attributes, the value can be determined by one or many other related attributes, or entities.
Derived Attributes (97)
- How do we specify the type of attribute from question 10 on an entity relationship (ER) diagram?
Put the attribute inside of a DASHED OVAL (114)
- Give two cases in which we may use the special “NULL” value?
If the attribute does not exist (example, apt # for single family home), or if the attribute is uknown (example, unpublished salary for an NFL coach) (97)
- These types of attributes have distinct values for each given entity set of an entity type E.
Key Attributes (99)
Subclasses: composite key, partial key (weak entity attribute with dotted underline)
- How many such entity sets are there for an entity type E with N entity instances (please explain your answer)?
There are 2^N entity sets. An entity set is “The collection of all entities of a particular entity type in the database at any point in time” also known as an entity collection (98/99). For each instance, there are two options, is it in the current set or not. For 3 possible instances: is entity 1 included (y/n), is entity 2 included (y/n), and is entity 3 included (y/n) = 2x2x2 = 8.
- When an attribute of one entity type refers to another entity type, what generally exists?
Relationship (103)