Podcast
Questions and Answers
Which characteristic is most important when defining a 'good' data name?
Which characteristic is most important when defining a 'good' data name?
- It is as short as possible to reduce storage requirements.
- It uses technical jargons familiar to database administrators.
- It is related to business characteristics and understandable by end-users. (correct)
- It incorporates the physical storage location within the database.
Which of the following is a key aspect of a well-defined data definition?
Which of the following is a key aspect of a well-defined data definition?
- It's iteratively refined and achieved by consensus among stakeholders. (correct)
- It is created in isolation by the database administrator.
- It's a lengthy and complex description to cover all possible scenarios.
- It relies on assumption instead of specific fact-associations.
What does an entity instance represent in the context of an E-R model?
What does an entity instance represent in the context of an E-R model?
- A specific occurrence of an entity. (correct)
- A category of similar objects or concepts.
- A link between different entity types.
- The overall structure of the database.
In E-R modeling, what is the primary purpose of a relationship instance?
In E-R modeling, what is the primary purpose of a relationship instance?
When should a business rule be considered 'good'?
When should a business rule be considered 'good'?
What distinguishes an 'entity type' from an 'entity instance'?
What distinguishes an 'entity type' from an 'entity instance'?
Which of the following should NOT be modeled as an entity?
Which of the following should NOT be modeled as an entity?
How does a weak entity differ from a strong entity?
How does a weak entity differ from a strong entity?
What is the significance of an 'identifying relationship' in the context of weak entities?
What is the significance of an 'identifying relationship' in the context of weak entities?
How does a 'required' attribute differ from an 'optional' attribute?
How does a 'required' attribute differ from an 'optional' attribute?
What is the key characteristic of a composite attribute?
What is the key characteristic of a composite attribute?
How do 'single-valued' and 'multivalued' attributes differ?
How do 'single-valued' and 'multivalued' attributes differ?
What is the primary characteristic of a 'derived' attribute?
What is the primary characteristic of a 'derived' attribute?
What makes an attribute a good 'identifier'?
What makes an attribute a good 'identifier'?
When naming attributes, which practice is considered a best practice?
When naming attributes, which practice is considered a best practice?
Regarding defining attributes, what's the importance of specifying 'required' versus 'optional'?
Regarding defining attributes, what's the importance of specifying 'required' versus 'optional'?
What is the difference between a 'relationship type' and a 'relationship instance'?
What is the difference between a 'relationship type' and a 'relationship instance'?
What is the degree of a relationship?
What is the degree of a relationship?
What distinguishes a ternary relationship from a binary relationship?
What distinguishes a ternary relationship from a binary relationship?
What does 'cardinality' in relationships specify?
What does 'cardinality' in relationships specify?
What is the difference between 'minimum cardinality' and 'maximum cardinality'?
What is the difference between 'minimum cardinality' and 'maximum cardinality'?
Under what condition is minimum cardinality considered 'optional'?
Under what condition is minimum cardinality considered 'optional'?
What does it signify if two entities have multiple relationships between them?
What does it signify if two entities have multiple relationships between them?
How can multivalued attributes be represented?
How can multivalued attributes be represented?
In what scenario should a relationship with attributes be replaced with an associative entity?
In what scenario should a relationship with attributes be replaced with an associative entity?
What is a primary use case for 'time-stamping' data?
What is a primary use case for 'time-stamping' data?
Which of the below actions illustrates converting many-to-many relationships to associative entities?
Which of the below actions illustrates converting many-to-many relationships to associative entities?
When choosing an Identifier, what consideration is most important?
When choosing an Identifier, what consideration is most important?
Which type of E-R model construct is best described as corresponding to fields in a table?
Which type of E-R model construct is best described as corresponding to fields in a table?
Which definition reflects an Entity Type?
Which definition reflects an Entity Type?
What is the purpose of Data Definitions?
What is the purpose of Data Definitions?
What is the result of not following the principles of good data modeling?
What is the result of not following the principles of good data modeling?
What happens if good names are not defined?
What happens if good names are not defined?
Which of the following correctly describes the Declarative property of a good business rule?
Which of the following correctly describes the Declarative property of a good business rule?
In the design of databases, what should be avoided from being modeled as an entity?
In the design of databases, what should be avoided from being modeled as an entity?
What is a good substitute for long, composite keys?
What is a good substitute for long, composite keys?
Which characteristic applies to defining attributes?
Which characteristic applies to defining attributes?
What is the relationship between cardinality and entities:
What is the relationship between cardinality and entities:
What determines when a business rule is considered 'Atomic'?
What determines when a business rule is considered 'Atomic'?
Flashcards
What are business rules?
What are business rules?
Statements that define or constrain some aspect of the business
What is an entity?
What is an entity?
A person, place, object, event or concept about which the organization wishes to maintain data
What is an entity type?
What is an entity type?
Collection of entities that share common properties or characteristics
What is an entity instance?
What is an entity instance?
Signup and view all the flashcards
What is a strong entity?
What is a strong entity?
Signup and view all the flashcards
What is a weak entity?
What is a weak entity?
Signup and view all the flashcards
What are Attributes?
What are Attributes?
Signup and view all the flashcards
What is a required attribute?
What is a required attribute?
Signup and view all the flashcards
What is a optional attribute?
What is a optional attribute?
Signup and view all the flashcards
What is a composite attribute?
What is a composite attribute?
Signup and view all the flashcards
What is a multi-valued attribute?
What is a multi-valued attribute?
Signup and view all the flashcards
What is a derived attribute?
What is a derived attribute?
Signup and view all the flashcards
What are Identifiers (Keys)?
What are Identifiers (Keys)?
Signup and view all the flashcards
What is degree of relationship?
What is degree of relationship?
Signup and view all the flashcards
What is a One-to-One relationship?
What is a One-to-One relationship?
Signup and view all the flashcards
What is a One-to-Many relationship?
What is a One-to-Many relationship?
Signup and view all the flashcards
What is Many-to-Many relationship?
What is Many-to-Many relationship?
Signup and view all the flashcards
What is Cardinality Constraints?
What is Cardinality Constraints?
Signup and view all the flashcards
What is time stamp?
What is time stamp?
Signup and view all the flashcards
What is Price History?
What is Price History?
Signup and view all the flashcards
What is Associative Entities?
What is Associative Entities?
Signup and view all the flashcards
Study Notes
- Good Data Names are related to business, meaningful, unique, readable, repeatable and in standard syntax
- Data Definitions explain a term or fact, including a term and any facts relating it to others
- Good Data Definitions have concise descriptions, gathered with system requirements, diagrams, and refined by consensus
E-R Model Constructs:
- Entities: Person, place, object, event or concept that corresponds to a row in a table
- Entity Type: Collection of entities, which often corresponds to a table
- Relationships: Link between entities, corresponding to primary key-foreign key equivalencies in related tables
- Relationship Type: Category of relationship, linking between entity types
- Attributes: Properties or characteristics of an entity or relationship type, corresponds to a field in a table
Business Rules:
- Business Rules define or constrain aspects of the business.
- Derived from policies, procedures, events, functions.
- Business Rules assert business structure and control business behavior
- They are expressed in terms familiar to end users, and are automated by DMBS software
Good Business Rules:
- A good business rule should be declarative, precise, atomic, consistent, expressible, distinct and business-oriented
Entities:
- Entity: person, place, object, event, or idea about which an organization saves data.
- Entity Type: collection of entities that share common properties.
- Entity Instance: A single occurrence of an entity type.
- Entities should be an object with multiple instances, attributes that can be modeled.
- Entities should not be a user or an output
Strong vs. Weak Entities:
- Strong Entity: exists independently of other entities, and has its own identifier
- Weak Entity: depends on a strong entity, cannot exist on its own, and does not have a unique identifier. Has a partial identifier.
- Identifying Relationship: links a strong entity to a weak entity.
Attributes:
- Attributes are properties or characteristics of an entity or relationship type.
- Attributes can be Required, Optional, Simple, Composite, Single-Valued, Multivalued, Stored, Derived and an Identifier
Attribute Classifications:
- Required Attribute: must have a value for every entity instance.
- Optional Attribute: may not have a value for every entity instance.
- Composite Attribute: has meaningful component parts.
- Multivalued Attribute: may take on more than one value for a given entity instance.
- Derived Attribute: values can be calculated from related attribute values, and are not physically stored.
Keys:
- Identifiers (Keys) are an attribute (or combo) which uniquely identifies individual instances of an entity type
- Candidate Key: attribute that could be a key and satisfies identifier requirements.
- Identifiers (Keys) should not change and cannot be null
- Intelligent identifiers (e.g., locations or people that might change) should be avoided.
- Substitute new, simple keys for long, composite keys.
Naming Attributes:
- Attribute names should be a singular noun or noun phrase
- Names should be unique and follow a standard formula: [Entity type name { [ Qualifier ] } ] Class
- Similar attributes of different entity types should use the same qualifiers and classes
Defining Attributes:
- State what an attribute is and why.
- Make clear what is included in the attribute’s value
- Include aliases in documentation
- State source of values
- Specify required vs. optional
- State min and max occurrences allowed
- Indicate relationships with other attributes
Relationships:
- Relationship Types are modeled as lines between entity types. Instances exist between specific entity instances
- Relationships can have attributes
- Two entities can have more than one type of relationship between them
Degree of Relationships:
- Degree of relationships is the number of entity types in it
- Unary Relationship: one entity type
- Binary Relationship: two entity types
- Ternary Relationship: three entity types
Cardinality of Relationships:
- Cardinality defines the number of instances of one entity that can or must be associated with each instance of another
- One-to-One: Each entity has exactly one related entity
- One-to-Many: One side can have many related entities, the other must have a maximum of one related entity
- Many-to-Many: Entities on both sides can have many related entities on the other side
- Cardinality Constraints include minimum cardinality and maximum cardinality
- Minimum cardinality of zero is optional
- Minimum cardinality of one or more is mandatory
- Multiple relationships connect entities in ore than one way
Associative Entities:
- Associative Entities are like a relationship with attributes, but it is also considered to be an entity in its own right.
- Associative Entities has attributes
- Relationships link entities together
- Relationships with attributes should be entities if all the relationships for the associative entity are many
- Associative Entity could have meaning independent of the other entities
- Associative entity should have unique identifier and other attributes
- Associative entity may participate in relationships other than associated relationships
- Ternary relationships should be converted to associative entities.
Time Stamps:
- A time stamp is a time value linked to a data value
- Indicates events affecting the data value
- Time stamps are used for time-dependent data, e.g, HIPAA and Sarbanes-Oxley.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.