Documente Academic
Documente Profesional
Documente Cultură
, on
(E-R model) A logical representation of the data September 9, 2010.
for an organization or for a business area, The symbols at the end of each line on an ERD
using entities for categories of data and specify relationship cardinalities, which
relationships for associations between entities. represent how many entities of one kind relate
Sample Entity Relationship Diagram to how many entities of another kind. On
examining Figure 2-1, we can see that these
cardinality symbols express the following
business rules:
2
short enough to meet maximum length limits of 1. Use multiple definitions to cover the various
database technology. situations. This is likely to be highly
confusing if there is only one entity type, so
Be repeatable, meaning that different people or
this approach is not recommended (multiple
the same person at different times should
definitions are not good definitions). It might
develop exactly or almost the same name; this
be possible to create multiple entity types, one
often means that there is a standard hierarchy
for each student situation. However, because
or pattern for names (e.g., the birth date of a
there is likely considerable similarity across
student
the entity types, the fine distinctions between
Follow a standard syntax, meaning that the parts the entity types may be confusing, and the data
of the name should follow a standard arrangement model will show many constructs.
adopted by the organization.
2. Use a very general definition that will cover
most situations. This approach\ may necessitate
DATA DEFINITION adding additional data about students to record
DATA DEFINITIONS A definition (sometimes called
a given student’s actual status. For example,
a structural assertion) is considered a type of
data for a student’s status, with values of
business rule (GUIDE Business Rules Project,
1997). A definition is an explanation of a term prospect, applicant, and so forth might be
or a fact. sufficient. On the other hand, if the same
student could hold multiple statuses (e.g.,
Term A word or phrase that has a specific prospect for one degree and matriculated for
meaning for the business. another degree), this might not work.
Fact an association between two or more terms. 3. Consider using multiple, related, data
Examples of facts that are definitions are the objects for Student. For example, we could
following (the defined terms are underlined): create a general entity type for Student and
then other specific entity types for kinds of
• “A course is a module of instruction in a students with unique characteristics.
particular subject area.” This definition
associates two terms: module of instruction and
subject area. We assume that these are common
terms that do not need to be further defined.
3
MODELING ENTITIES AND
ATTRIBUTES
Entity A person, a place, an object, an event,
or a concept in the user environment about which
the organization wishes to maintain data.