worldor,atleast,oftheenterprisetoberepresentedin
the database. For instance, the marketing division tends
to have the whole pro duc t as a basi c unit for sales, but
the engineering division may concentrate on the indi vid-
ual parts of the who le prod uct. In anothe r case, one user
may v iew a project in t erms of its goals and p rogress
toward meeting those goals over ti me, but another user
may view a project in terms of the resources it needs
and the personnel involved. Such differences cause the
conceptual models to seem to have incompatibl e
relationships and terminology. These differences show
up in conceptual data models as different levels of
abstraction, connectivity of relationships (one-to-many,
many-to-many, and so on), or as the same concept being
modeled as a n entity, attribute, or relatio nship,
depending on t he user’s perspective.
As an example of the latter case, in Figure 4.4
we see three different perspectives of the same
real-life situation—the placement of an order
for a certain product. The result is a variety of
schemas. The first schema ( Figure 4.4a) depicts
Customer, Order, and Product as entities
and “places” and “for-a” as relationships. The
second schema (Figure 4.4b), however, defines
“orders” as a relationship between Customer
and Product and omits Order as an entity alto-
gether. Finally, in the third case (Figure 4.4c),
the relationship “orders” has been replaced by
another relationship “purchases”; order-no, the
identifier (key) of an order, is designated as an
attribute of the relationship “purchases.” In other
words, the concept of order has been variously
represented as an entity, a relationship, and an
attribute, depending on perspective.
There are three basic steps needed for
conceptual schema integration:
1. Comparison of schemas and identifying
conflicts.
2. Conformation of schemas and resolving
conflicts.
3. Merging and restructuring of schemas.
Customer
Customer
Customer Product
purchases
order-no
places
orders
Order
Product
for-a
Product
(a)
(b)
(c)
N
N
NN
NN
1
1
Figure 4.4 Schemas: placement of an
order: (a) the concept of order as an
entity, (b) the concept of order as a
relationship, and (c) the concept of order
as an attribute.
Chapter 4 REQUIREMENTS ANALYSIS AND CONCEPTUAL DATA MODELING 69