Chapter 3 Flashcards
What are the two main activities of the database design process?
1- database design
2- applications design
(database design/applications design) focuses on the programs and interfaces that access the database.
application design
What does the following diagram represent?
the main phases of database design
ER diagrams, EER diagrams, UML Class diagrams, and the use of design tools industry for designing and documenting large scale designs are all methodologies for ____________________.
conceptual design
What are the two ways in which a database can be modeled as?
A collection of entites or a relationship among entities
An _______ is an object in real world with an independent existence.
entity
T/F: The entity can be an object with a physical existence or with a conceptual existence in the real world.
true
T/F: Entities have attributes.
true
What does the following figure show?
two entities and their attribute values (ex: the entity [e1] and its attribute values [name, address, age, homephone].)
________ are properties used to describe an entity.
Attributes
T/F: A specific entity will have a value for each of its attributes.
true.
T/F: All attributes have the same value set (or data type) associated with it.
false, each one has a value set…
T/F: Entity is a basic concept for the ER model.
True
_______ are specific things or objects in the mini-world that are represented in the database.
entites
What are the 6 types of attributes?
simple, composite, multi-valued, stored, complex and derived.
A _______ attribute is when each entity has a single atomic value for the attribute. For example, SSN or Sex.
simple
A ________ attribute may be composed of several components.
composite
Name 2 composite attributes from the following ER schema diagram.
Address (which is composed of apt#, house#, street, city, state, zipcode, and country.) and Name (which is composed of firstname, middlename, and last name)
T/F: Composition may form a hierarchy where some components are themselves composite.
True.
A __________ attribute describes an entity which may have multiple values for that attribute. (ex: color of a CAR or PreviousDegrees of a STUDENT. Which will be denoted as _______ or _________)
multi-valued, {Color}, {PreviousDegrees}.
A _________ attribute is an attribute value which can be derived from related attributes or entites.
derived
Name 2 Derived attributes from the following ER schema diagram.
Age (which can be derived from the birth_date attributes of a person) and Number_of_employees (which can be derived by counting the number of employees related to (working for) that department.)
A _______ attribute can have other attributes derived from it.
stored (Ex: Birth_date)
T/F: In some cases, two or more attribute values are related.
true, stored and derived attributes are related in which one is derived from the other.
A _______ value is used in some cases in which a particular entity may not have an applicable value for an attribute.
null
Determine the value of the following:
a College_degrees attribute applies only to people with college degrees.
null value. a person with no college degree would have NULL for College_degrees.
______ means not applicable or unknown.
Null (not applicable: dosent exist for some instances and Unknown, not known whether the attribute value exists for some instances. )
The two cases in which NULL can be classified under the unknown category are ________ or _________.
missing, or not known.
T/F: composite and multi-valued attributes may be nested arbitrarily to any number of levels, although this is rare.
true. they are formed in complex attributes.
In a _______ attribute, the composite attribute is between parentheses () and the components are seperated by commas, and the multivalued attributes are displayed between braces {}.
complex. (also called a composite multivalued attribute.)
{PreviousDegrees (College, Year, Degree, Field)} is a denoted example of a __________ attribute.
Complex/composite multi-valued attribute
Name the subcomponents attributes of: {PreviousDegrees (College, Year, Degree, Field)}
College, Year, Degree, Field.
T/F: Multiple {PreviousDegrees (College, Year, Degree, Field)} values cannot exist.
false, multiple values can exist.
The following is an example of a ________ attribute.
composite
T/F: Attribute names are enclosed in circles and are attached to their entity type by straight lines in ER diagrams.
false, they are enclosed in ovals.
T/F: Composite attributes are attached to their component
attributes by straight lines.
true.
T/F: composite attributes are displayed in double ovals.
false, multivalued attributes.
T/F: Entities with the same basic attributes are grouped or typed
into an entity type.
true.
T/F: Each entity type will have a collection of entities stored in the
database.
true
Each entity type will have a collection of entities stored in the
database called the _______ or sometimes ________.
entity set, entity collection.
T/F: the entity set and the entity type are two seperate concepts that must always have two different names.
false, the entity set is usually referred to using the same name as the entity type. (Ex: EMPLOYEE refers to both a type of entity as well as the current collection of all employee entities in the database.)
However, entity type and entity set may be given
different names.
Determine the Entity set and Entity type in the following figure:
Employee and Company are the entity type names.
e1 e2 e3 and c1 c2 are the entity set for each entity type.
The following figure shows which state of the entity set?
it shows the current state of the entities of that type that are stored in the database.
T/F: Entity set is the current state of the entities of that type
that are stored in the database.
true