Presentation is loading. Please wait.

Presentation is loading. Please wait.

Some examples of simple business rules:

Similar presentations


Presentation on theme: "Some examples of simple business rules:"— Presentation transcript:

1 CIS 381 – Database Systems ENTITY RELATIONSHIP DIAGRAM (ERD) FUNCTIONAL DECOMPOSTION

2 Some examples of simple business rules:
There are several protocols to the way business rules are written. Not every protocol has to be followed, but in general, a well-written set of business rules consist of having a unique identifier, describes one and only one concept, are written in plain language, are written, and are from a single source. In terms of a unique identifier, business rules should come with an identifier that may consist of the rule number and the department it affects. Some examples of simple business rules: Department offers Courses Course generates Class Professor teaches Class

3 Business Entities CUSTOMER
A person or organization who has ordered or might order products. PRODUCT A type of furniture made by Pine Valley Furniture that may be ordered by customers. Note that a product is not a specific bookcase, because individual bookcases do not need to be tracked. ORDER The transaction associated with the sale of one or more products to a customer and. identified by a transaction number from sales or accounting. ITEM A type of component that goes into making one or more products and can be supplied by one or more suppliers. SUPPLIER Another company that may provide items to Pine Valley Furniture. SHIPMENT The transaction associated with items received in the same pack- age by Pine Valley Furniture from a supplier. All items in a shipment appear on one bill-of-lading document.

4 Rules for Drawing an E-R Diagram

5 Business Rules Example
Note that these business rules roughly follows a certain grammar: <entity> <minimum cardinality> <relationship> <maximum cardinality> <entity> For example <A SHIPMENT> <must> < include>< one or more> < ITEMs> OR <ITEM> <may> <be included><on several><SHIPMENTs> This grammar gives you a standard way to put each relationship into a natural English business rule statement.

6 Business ERD Example

7 Shipment-Supplier Example
A SUPPLIER may send many SHIPMENTs. 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).

8 A SHIPMENT must include one (or more) ITEMs.
Shipment-Item Example A SHIPMENT must include one (or more) ITEMs. An ITEM may be included on several SHIPMENTs.

9 Supplier-Item Example
A SUPPLIER may supply many ITEMs (by "may supply" we mean the supplier may not supply any items) . Each ITEM is supplied by any number of SUPPLIERs (by "is supplied" we mean that the item must be supplied by at least one supplier) .

10 Item-Product Example Each ITEM must be used in the assembly of at least one PRODUCT, and may be used in many products. Each PRODUCT must use one or more ITEMs.

11 An ORDER must request one (or more) PRODUCTs.
Product-Order Example A given PRODUCT may not be requested on any ORDER, or may be requested on one or more orders. An ORDER must request one (or more) PRODUCTs.

12 Customer-Order Example
A CUSTOMER may submit any number of ORDERs. Each ORDER must be submitted by exactly one CUSTOMER.


Download ppt "Some examples of simple business rules:"

Similar presentations


Ads by Google