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.