Modeling Data in The Organization: Abasyn University, Peshawar 1
Modeling Data in The Organization: Abasyn University, Peshawar 1
.
Abasyn University, Peshawar 1
THE E-R MODEL: AN OVERVIEW
• An entity-relationship model (E-R model) is a
detailed, conceptual representation of the data for an
organization or a business area.
• The E-R model is expressed in terms of entities in the
business environment, the relationships (or associations)
among those entities, and the attributes (or properties) of
both the entities and their relationships.
• An E-R model is normally expressed as an entity-
relationship diagram (E-R diagram, or ERD), which
is a graphical representation of an E-R model.
2. Each ITEM must be used in the assembly of at least one PRODUCT and may be used in
many products. Conversely, each PRODUCT must use one or more ITEMs.
3. ASUPPLIER may send many SHIPMENTs. However, each shipment must be sent
by exactly one SUPPLIER. Notice that sends and supplies are separate concepts.
A SUPPLIER may be able to supply an item, but may not yet have sent any shipments of that
item.
4. A SHIPMENT must include one (or more) ITEMs. An ITEM may be included on
several SHIPMENTs.
5. ACUSTOMER may submit any number of ORDERs. However, each ORDER must
be submitted by exactly one CUSTOMER. Given that a CUSTOMER may not have
submitted any ORDERs, some CUSTOMERs must be potential, inactive, or some
other customer possibly without any related ORDERs.
6. An ORDER must request one (or more) PRODUCTs. A given PRODUCT may not
be requested on any ORDER, or may be requested on one or more orders.
10/8/21 Abasyn University, Peshawar 26
10/8/21 Abasyn University, Peshawar 27
FIGURE 2-22 Data model for Pine Valley
Furniture Company in Microsoft Visio notation