Chapter 2 Database Management – Flashcards

Unlock all answers in this set

Unlock answers
question
Business rules are important in data modeling because they...
answer
Govern how data are handled and stored, and govern the people, places, events, processes, networks, and objectives of the organization
question
Examples of basic business rule are (2)
answer
data names and definitions, constraints on data objects
question
The ER model is most used as a
answer
tool for communications between database designers and end users during the ANALYSIS phase of database development
question
Entity-relationship model (E-R model)
answer
a detailed, logical representation of the data for an organization or for a business area.
question
E-R model mostly expressed as a
answer
Entity-relationship diagram
question
Business rules and policies are NOT
answer
universal.
question
The purpose of data modeling is to
answer
document business rules.
question
Business Rule (definition)
answer
a statement that defines or constrains some aspect of the business.
question
A business rule is intended to...
answer
assert business structure or to control or influence the behavior of the business.
question
Business rules are expressed in terms
answer
familiar to end users
question
Business rules are automated through
answer
DBMS software
question
Business rule are highly
answer
maintainable, stored in central repository, each rule expressed only once.
question
Good business rules are...(7)
answer
1. declarative 2. precise 3. atomic 4. consistent 5. expressible 6. distinct 7. business-oriented
question
Declarative
answer
it is a statement of the policy, it is what not HOW
question
Precise
answer
the rule must have only one agreed-upon meaning and interpretation
question
Atomic
answer
A business rule marks one statement, not several.
question
Consistent
answer
Business Rule must be internally consistent and externally consistent and can not contradict other rules
question
Expressible
answer
be stated in natural, structured language
question
Distinct
answer
Business rules are not redundant
question
Business-Oriented
answer
stated in terms that business people can understand
question
Data objects must be ____ before
answer
named, before they can be used unambiguously in a model of organizational data
question
A good data name is (7)
answer
1. Related to business 2. meaningful and self-documenting 3. Unique 4. Readable 5. Composed of words from an approved list 6. Repeatable 7. Written in standard syntax
question
Data Definitions
answer
Explanation of a term or fact.
question
Term
answer
word or phrase that has specific meaning for the business. Key words used to form data names. ex:// course, section, rental car, flight.
question
No need to define common terms like person, month, television, because
answer
there terms are understood without ambiguity by most persons.
question
Fact
answer
is an association between two or more terms. Documented as a simple declarative statement that relates terms.
question
Guidelines for good data definition (4)
answer
1. Gathered in conjunction with system requirements 2. Accompanied by diagrams 3. Concise description of essential data meaning 4. Achieved by consensus, and iteratively refined
question
Entities
answer
a person, place, object, event, or a concept in the under environment about which the organization wishes to maintain data. Entity has a noun name.
question
Entities often correspond to a
answer
row in a table
question
Entity type is ALWAYS
answer
singular
question
Entity Type
answer
a collection of entities that share common properties or characteristics. (often corresponds to a table). use capital letters for names of entity types.
question
Entity Instance
answer
a single occurrence of an entity type. ex:// there may be one EMPLOYEE entity type in most organizations, but there may be hundreds of instances of this entity type stored in the database.
question
If an entity is the result of extracting data from the database,
answer
don't represent as it's own entity (ex://= figure 2-4)
question
Strong Entity Type
answer
is one that exists independently of other entity types. ex:// STUDENT, EMPLOYEE, AUTOMOBILE, COURSE
question
Instances of a strong entity type always have
answer
a unique characteristic (an identifier)
question
Weak Entity Type
answer
an entity whose existence depends on some other entity type. Has no business meaning in an E-R diagram without the entity on which it depends. Does not have its own identifier.
question
Typically a weak entity type has an
answer
attribute that services as a partial identifier.
question
Partial Identifier is indicated with a
answer
double underline
question
Identifying owner
answer
The entity type on which the weak entity type depends.
question
Identifying relationship
answer
the relationship between a weak entity type and its owner.
question
Attribute
answer
a property or characteristic of an entity type that is of interest to the organization
question
Required Attribute & ex
answer
an attribute that must have a value for every entity (or relationship) instance with which it is associated. Ex:// student ID or student address (boldface, or notified with symbol)
question
Optional Attribute
answer
An attribute that may not have a value for every entity (or relationship) instance with which it is associated. (notified by normal font)
question
An attribute wihtout a value is said to be
answer
nul
question
Composite Attribute, how to indicate, example
answer
An attribute that has meaningful component parts that can be broken down. (Ex:// employee address, employee name) Use parenthesis to indicate.
question
Simple Attribute
answer
an attribute that cannot be broken down into smaller components that are meaningful to the organization. Ex:// Vehicle ID
question
Multivalued Attribute, Example, how indicate
answer
An attribute that may take on more than on value for a given entity (or relationship) instance. Use curly brackets to indicate. Ex:/ skill
question
Difference between multivalued and composite attribute
answer
A multivalued attribute may occur one or multiple times, a composite attribute each has same number of components.
question
Derived Attribute, how to indicate
answer
an attribute whose values can be calculated from related attribute values. Indicate by using square brackets around attribute name. Ex:// want to know how many years employed, use Date Employed and today's date to find column value.
question
Identifier, how to indicate
answer
An attribute whose value distinguishes instances of an entity type. Underline to indicate.
question
Composite Identifier
answer
An identifier that consists of a composite attribute. Ex:// Flight ID needs Flight Number, and Date) composite attributes to uniquely identify the entity.
question
What should entity be? (3)
answer
An object that will have many instances in the database, an object that will be composed of multiple attributes, an object that we are trying to model.
question
What should an entity NOT be? (2)
answer
-A user of the database system, - an output of the database system (report)
question
Candidate Key
answer
an attribute that could be a key.. satisfies the requirements of being a key
question
Criteria for selecting identifiers(4)
answer
1. Will not change in value over the life of each instance of the entity type 2. Will not be NULL 3. No intelligent Identifiers (containing locations or people that might change) 4. Substitute new, simple keys for long, composite keys
question
Relationship, what type of name
answer
is an association representing an interaction among the instances of one or more entity type that is of interest to the organization. Has a verb phrase name**. Relationships and cardinalities represent business rules.
question
Relationship Type
answer
a meaningful association between (or among) entity types. Implies that the relationship allows us to answer questions that could not be answered given only the entity types. Denoted with line and labeled with the name of the relationship. ex:// completes, calls, hires etc.
question
Relationship Instance
answer
an association between or among entity instances, where each relationship instance associates exactly one entity instance from each participating entity type.
question
Relationships can have attributes that describe
answer
features pertaining to the association between the entities in the relationship.
question
Two entities can have
answer
more than one type of relationship between them.
question
Associative Entity
answer
combination of relationship and entity. ** the relationship name is usually converted to an entity name that is a noun. No relationship on lines between association because the associative entity represents the relationship. EX:// certificate
question
Four conditions to concert a relationship to an associative entity type:
answer
1. All relationships for participating entity types are "many" 2. the resulting associative entity type has independent meaning to end users and (preferably) can be identified with a single-attribute identifier. 3. The associative entity has one or more attributes in addition to the identifier. 4. The associative entity participates in one or more relationships independent of the entities related in the associated relationship.
question
Degree of a relationship
answer
the number of entity types that participate in a relationship.
question
Three most common relationship degrees:
answer
1. Unary (degree 1) 2. Binary (degree 2) 3. Ternary (degree 3)
question
Unary Relationship
answer
a relationship between the instances of a single entity type.
question
Binary Relationship
answer
a relationship between the instances of two entity types and is the most common type of relationship encountered in data modeling.
question
Ternary Relationship
answer
simultaneous relationship among the instances of three entity types.
question
Guideline for Ternary relationships
answer
convert all ternary (or higher) relationships to associative entities.
question
When should an attribute be linked to an entity type via a relationship?
answer
When the attribute is the identifier or some other characteristic of an entity type in the data model and multiple entity instances need to share thee same attributes.
question
Cardinality constriant
answer
specifies that the number of instances of entity B that can (or must) be associated with each instance of entity A.
question
Minimum Cardinality
answer
minimum number of instances of entity B that may be associated with each instance of entity A. if minimum is one, participation is mandatory. If minimum is zero, participation is optional.
question
Maximum Cardinality
answer
the maximum number of instances of entity B that may be associated with each instance of entity A.
question
Time Stamp
answer
simply a time value, such as date and time, that is associated with a data value. A time stamp may be associated with any data value that changes over time when we need to maintain a history of those data values.
question
Time stamps may be recorded when:
answer
1. indicate the time the value was entered 2. the time the value becomes valid or stops being valid 3. time when critical actions were performed, such as updates, corrections, or audits.
question
Guidelines for naming relationships
answer
1. Relationship name is verb phrase 2. avoid vague names
question
Guidelines for defining relationships:
answer
1. Relationship definition explains what action is being taken a possibly why it is important. Not important to explain how the action is taken. 2. Relationship should explain optional participation,
question
Levels of Database Schemas
answer
1. External level; combines external vews 2. Conceptual Schema 3. Internal Schema
question
Whenever have MULTIVALUED attributes or COMPOSITE ATTRIBUTES =
answer
they can be turned into associative entities. Turn composite attributes into new entities!!!
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New