Docsity

Supply Chain Application Suite-Computer Sciences Applications-Project Report, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
3 | Page
Contents
1 Introduction ............................................................................................................................. 8
1.1 Project Background .......................................................................................................... 8
1.2 Report Focus .................................................................................................................... 9
2 Entity Relationship Diagram ................................................................................................. 10
2.1 Modeling of Entities and the respective Relations ......................................................... 10
2.1.1 Customer Entity ...................................................................................................... 10
2.1.2 Order Entity ............................................................................................................ 12
2.1.3 Order_Line Entity ................................................................................................... 14
2.1.4 State Entity .............................................................................................................. 14
2.1.5 Customer_Account Entity ....................................................................................... 15
2.1.6 Database_Access Entity .......................................................................................... 17
2.1.7 Product Entity ......................................................................................................... 19
2.1.8 Product_Line_Item Entity ....................................................................................... 21
2.1.9 Catalog_Item Entity ................................................................................................ 22
2.1.10 Manufacturing _Company Entity ........................................................................... 22
2.1.11 Payment Entity ........................................................................................................ 23
2.1.12 Credit Card Entity ................................................................................................... 23
2.1.13 Invoice Entity .......................................................................................................... 24
2.1.14 Direct Billing Entity ................................................................................................ 25
2.2 Complete System E-R Diagram ..................................................................................... 26
3 Mapping Entity Relationship Diagram into Relations .......................................................... 27
3.1 Step 1: Map Regular Entities ......................................................................................... 27
3.1.1 Customer Relation .................................................................................................. 27
3.1.2 Order Relation ......................................................................................................... 27
3.1.3 State Relation .......................................................................................................... 27
3.1.4 Customer_Account Relation ................................................................................... 28
3.1.5 Database_Access Relation ...................................................................................... 28
3.1.6 Product Relation...................................................................................................... 28
3.1.7 Product_Line_Item Relation ................................................................................... 28
3.1.8 Manufacturing_Company Relation ......................................................................... 28
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c

Partial preview of the text

Download Supply Chain Application Suite-Computer Sciences Applications-Project Report and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

3 | P a g e

6 | P a g e

  • 1 Introduction Contents
    • 1.1 Project Background
    • 1.2 Report Focus
  • 2 Entity Relationship Diagram.................................................................................................
    • 2.1 Modeling of Entities and the respective Relations
      • 2.1.1 Customer Entity
      • 2.1.2 Order Entity
      • 2.1.3 Order_Line Entity
      • 2.1.4 State Entity
      • 2.1.5 Customer_Account Entity
      • 2.1.6 Database_Access Entity
      • 2.1.7 Product Entity
      • 2.1.8 Product_Line_Item Entity
      • 2.1.9 Catalog_Item Entity
      • 2.1.10 Manufacturing _Company Entity
      • 2.1.11 Payment Entity
      • 2.1.12 Credit Card Entity
      • 2.1.13 Invoice Entity
      • 2.1.14 Direct Billing Entity................................................................................................
    • 2.2 Complete System E-R Diagram
  • 3 Mapping Entity Relationship Diagram into Relations
    • 3.1 Step 1: Map Regular Entities
      • 3.1.1 Customer Relation
      • 3.1.2 Order Relation
      • 3.1.3 State Relation
      • 3.1.4 Customer_Account Relation
      • 3.1.5 Database_Access Relation
      • 3.1.6 Product Relation......................................................................................................
      • 3.1.7 Product_Line_Item Relation
      • 3.1.8 Manufacturing_Company Relation
    • 3.2 Step 2: Map Weak Entities 4 | P a g e
      • 3.2.1 Catalog_Item Relation
    • 3.3 Step 3: Map Binary Relationships
      • 3.3.1 Map Binary One-to-Many Relationships
      • 3.3.2 Map Binary Many-to-Many Relationships
      • 3.3.3 Map Binary One-to-One Relationships
    • 3.4 Step 4: Map Associative Entities
    • 3.5 Step 5: Map Unary Relationships...................................................................................
    • 3.6 Step 6: Map Ternary (and n-ary) Relationships
    • 3.7 Step 7: Map Supertype/Subtype Relationships
  • 4 Normalization
    • 4.1 Step 1: Convert to First Normal Form
      • 4.1.1 Product
      • 4.1.2 Order_Line
      • 4.1.3 Order
      • 4.1.4 Customer_Account
      • 4.1.5 Customer
      • 4.1.6 Catalog_Item
      • 4.1.7 Quote
      • 4.1.8 Database_Access.....................................................................................................
    • 4.2 Step 2: Convert to Second Normal Form
      • 4.2.1 Product
      • 4.2.2 Order_Line
      • 4.2.3 Order
      • 4.2.4 Customer_Account
      • 4.2.5 Customer
      • 4.2.6 Catalog_Item
      • 4.2.7 Quote
      • 4.2.8 Database_Access.....................................................................................................
    • 4.3 Step 3: Convert to Third Normal Form
  • 5 References
  • Figure 1: Customer entity List of Figures
  • Figure 2: Customer submits Order
  • Figure 3: Customer creates Customer_Account
  • Figure 4: Customer lives_in State
  • Figure 5: Order entity....................................................................................................................
  • Figure 6: Order includes Product
  • Figure 7: Order_Line Entity..........................................................................................................
  • Figure 8: State entity
  • Figure 9: Customer_Account entity
  • Figure 10: Customer_Account provides Payment
  • Figure 11: Database_Access entity
  • Figure 12: Database_Access managed by Database_Manger
  • Figure 13: Product entity
  • Figure 14: Product included_in Product_Line_Item.....................................................................
  • Figure 15: Product supplied_by Manufacturing_Company
  • Figure 16: Product displayed_by Catalog_Item
  • Figure 17: Product_Line_Item entity
  • Figure 18: Catatlog_Item entity
  • Figure 19: Manufacturing_Company entity..................................................................................
  • Figure 20: Payment entity
  • Figure 21: Credit Card entity
  • Figure 22: Invoice entity
  • Figure 23: Direct Billing Entity
  • Figure 27: Complete E-R Diagram
  • Figure 28: Customer submits Order relation
  • Figure 29: Customer lives_in State relation..................................................................................
  • Figure 30: Customer_Account provides Payment relation
  • Figure 32: Product included_in Product_Line_Item relation
  • Figure 33: Product displayed_by Catalog_Item relation
  • Figure 35 : Product supplied_by Manufacturting_Company relation
  • Figure 36: Customer creates Customer_Account relation
  • Figure 37: Order includes Product relation
  • Figure 38 : Supertype and Subtype relation
  • Table 1: Customer data description List of Tables
  • Table 2: Order data description.....................................................................................................
  • Table 3: Order_Line data description
  • Table 4: State data description
  • Table 5: Customer_Account data descriptions
  • Table 6: Database_Access data description
  • Table 7: Product data description
  • Table 8: Product_Line_Item data description
  • Table 9: Catalog_item data description
  • Table 10: Manufacturing_Company data description...................................................................
  • Table 11 : Payment data description
  • Table 12: Credit Card data description
  • Table 13: Invoice data description
  • Table 14: Direct Billing data description
  • Table 17: Customer relation..........................................................................................................
  • Table 18: Order relation
  • Table 19: State relation
  • Table 20: Customer_Account relation
  • Table 21: Database_Access relation
  • Table 22: Product relation
  • Table 23: Product_Line_Item relation
  • Table 26: Manufacturing_Company relation
  • Table 27: Catalog_Item relation
  • Table 28: Customer submits Order relations
  • Table 29: Customer lives_in State relations
  • Table 30: Customer_Account provides Payment relations
  • Table 32: Product included_in Product_Line_Item relations
  • Table 33: Product displayed_by Catalog_Item relations
  • Table 35: Product supplied_by Manufacturing Company relations
  • Table 36: Customer creates Customer_Account relations
  • Table 37: Order includes Product relations
  • Table 38: Payment relation
  • Table 39: Credit Card relation
  • Table 40: Invoice relation
  • Table 41: Direct Billing relation 7 | P a g e
  • Table 42: Payment relations..........................................................................................................
  • Table 43: Product (2NF)
  • Table 44: Order_Line (2NF)
  • Table 45: Order (2NF)
  • Table 46: Customer_Account (2NF)
  • Table 47: Customer (2NF)
  • Table 48: Catalog_Item (2NF)
  • Table 49: Quote (2NF)
  • Table 50: Database_Access (2NF)................................................................................................

9 | P a g e

1.2 Report Focus

As part of completing the first build of the system as following the incremental model, the prime objective of this report is to provide insight into two main models:

 Conceptual Data model This comprises of the Entity Relationship Diagram (E-R Diagram). E-R diagram realizes the business rules of the organization, in this case PCLAN Plus Inc., which is derived from rules, constraints and core functionalities of the company.

The report contains the Data descriptions of the Entities modeled and their relationships. Each Relationship is described in stages which are then combined into the overall E-R diagram of the system.

 Logical Database Design and the Relational Model E-R diagram is then translated into relations. Relations are essentially two dimensional tables uniquely named and contain a set of named columns and an arbitrary number of unnamed rows. Here the graphical representation is applied as opposed to the short text statements. The graphical representation is depicted by a rectangle containing the attributes for the relation.

Normalization , being the integral part of the logical database design, is carried out to verify that each of the relations that were created as from mapping the E-R diagram is devoid of anomalies and from well-structured relations.

10 | P a g e

2 Entity Relationship Diagram

2.1 Modeling of Entities and the respective Relations

Each Entity is modeled separately. The data description is given of the attributes and the meaning that the entity represents in the system.

The relationships of the entity with other entities associated with are described along with the graphical representation.

The overall E-R diagram is shown in the end of this section.

2.1.1 Customer Entity

2.1.1.1 Customer Data Description CUSTOMER: Usually an Organization but could also be an individual interested in the purchasing of electronic products or has made purchases before.

Figure 1: Customer entity Table 1: Customer data description

Attributes

Customer Name Description Customer _ID Identification number Customer_Name Name of Customer ( either individual or a company) Customer_Address Street address of Customer Modi_Date Date indicating when Customer attributes value were last changed Create_Date Date indicating when a new Customer exists Customer_Account_status_cd Customer account status code indicating whether the account still exists or not

Customer

Customer_ID

Cust_Name Cust_Address

Cust_Acount_ Status_Code

12 | P a g e

  1. CUSTOMER Lives In State. This is a 1:M relationship. Each CUSTOMER can live in only one STATE but each STATE is lived-in by any number of CUSTOMERS.

Customer

Customer_ID

Cust_Name Cust_Address

Cust_Acount_ Status_Code

Creation_ Date

Modification_ Date

State

Lives In State_ID State_Name

State_ Abbreviation

Figure 4: Customer lives_in State

2.1.2 Order Entity

2.1.2.1 Order Data Description ORDER: The Transaction associated with the scale of one or more products to customer. The order is in an electronic Form.

Figure 5: Order entity

Order_Amt

Order

Order_ID Order_Time

13 | P a g e

Table 2: Order data description

Attributes

Order Name Description Order_ID Identification Number Order_Time Time and date of order placement Order_Amt Total amount of Order Order_Status Delivery status

2.1.2.2 Order Entity Relationships with other Entities

  1. ORDER Includes PRODUCT. This is a M:M relationship. Each instance of ORDER is requested for at least one PRODUCT. Each Product may be requested through any instances of ORDER. Since this is a M:M relationship, Requests relationship is substituted with ORDER_LINE associative entity.

Order_Amt

Order

Order_ID Order_Time

Product

DescriptionProduct_

Acctual_CostProduct_

Product_Status

Product_ Count

Product_ID

Order_LineEntity

Ordered_ quantity

Figure 6: Order includes Product

15 | P a g e

2.1.5 Customer_Account Entity

2.1.5.1 Customer_Account Data Description CUSTOMER_ACCOUNT: This is an account online that is created when a customer buys a product. It is used to keep the shipment information and also the payment details.

Customer_Account

Cust_Acct_ID

Modificatin_ Date

Cust_Acct_Type

Figure 9: Customer_Account entity Table 5: Customer_Account data descriptions

Attributes

Customer Account Name Description Acct_ID Identification Number Create_Date Date of creation Modi_Date Customer Account modification date Acct_Type_Cd Account type code for easy reference in lookup tables

16 | P a g e

2.1.5.2 Customer_Account Entity Relationships with other Entities

  1. CUSTOMER_ACCOUNT Provides PAYMENT. This is a 1:M relationship. Each CUSTOMER_ACCOUNT has multiple options for PAYMENT. Each instance of PAYMENT specific to a customer belongs to one CUSTOMER_ACCOUNT.

Customer_Account

Cust_Acct_ID Modificatin_Date

Cust_Acct_Type

Payment

Credit Card

Direct Billing

is/a

Invoice

Provides

Credit Card Type

Credit Card_No Expiry Date

Maximum_ Credit_ Limit Limit_indicator

Bill_to_ Address

DirectBilling_Ac count_ID

Invoice_No

Created_by

Created_on

Date_ delivered Description

Payment_ID

Figure 10: Customer_Account provides Payment

18 | P a g e

2.1.6.2 Database_Access Entity Relationships with other Entities

  1. DATABASE_ACCESS Maintained_by DATABASE_MANGER. This is a M: relationship. Each instance of the DATABASE_ACCESS is maintained by a single DATABASE_MANGER at a time. Whereas each DATABASE_MANGER has the authority to update or edit the many instances of DATABASE_ACCESS at a time. PRODUCT: A type of computer products and other products related to computer and network technology made by various trusted brands.

Cust_Account_Email

Database_Access

Customer_ reference _ID

Database_Manager

Managed_by

DatebaseManager_ ID

Address Name

Figure 12: Database_Access managed by Database_Manger

19 | P a g e

2.1.7 Product Entity

2.1.7.1 Product Data Description PRODUCT: A type of computer products and other products related to computer and network technology made by various trusted brands.

Product

Product_ Description Product_ Acctual_Cost

Product_ Status

Product_ Count

Product_ID

Figure 13: Product entity Table 7: Product data description

Attributes

Product Name Description Product_ID Identification Number Prod_Actual_Cost Product actual production cost Cost_Currency_cd Date of creation Product_status Status of product indicating availability Product_Count Number of Products

21 | P a g e

  1. PRODUCT Displayed_by CATALOG_ITEM. This is M:1 relationship. Each PRODUCT is displayed as one CATALOG_ITEM. Each CATALOG_ITEM may represent many instances of the PRODUCT of the similar kind.

Product

Product_ Description

Product_ Acctual_Cost

Product_ Status

Product_ Count

Displayed _by

Product_ID

Name Description

Price

Catalog_Item

Figure 16: Product displayed_by Catalog_Item

2.1.8 Product_Line_Item Entity

2.1.8.1 Product_Line_Item Data Description PRODUCT_LINE_ITEM: This represents the similar types of product grouped together. Each product belongs to only one Product line.

Product_Line_Item

Product_Line_ ID Product_line_Name

Figure 17: Product_Line_Item entity Table 8: Product_Line_Item data description

Attributes

Product_Line_Item

Name Description Product_Line__ID Identification Number Product_Line_Name The name of the Product line

22 | P a g e

2.1.9 Catalog_Item Entity

2.1.9.1 Catalog_Item Data Description

  1. CATALOG_ITEM: A weak entity which displays the products. Its key attribute is the combination by the Product_ID and the Name attribute of the catalog.

Name Description

Price

Catalog_Item

Figure 18: Catatlog_Item entity Table 9: Catalog_item data description

Attribute

s

Catalog Item Name Description Name Name of Catalog item Description Catalog item specification Price Customer price of Catalog Item

2.1.10 Manufacturing _Company Entity

2.1.10.1 Manufacturing_Company Data Descriptions MANUFACTURING_COMPANY: The various companies dealing with the supply of products.

Manufacturing_ Comapany

Manufacturing Company Name

Manufacturing_ Company_ID

Address Telephone_No

Figure 19: Manufacturing_Company entity