Question

In: Computer Science

Customer Order Example ORDER NO: 61384                                    &

Customer Order Example

ORDER NO: 61384                                                            ORDER DATE: 9/24/2014

CUSTOMER NO: 1273

CUSTOMER NAME: CONTEMPORARY DESIGNS

CUSTOMER ADDRESS: 123 OAK ST.

CITY STATE ZIP: AUSTIN, TX 28384

PRODUCT                                        QUANTITY    UNIT                          EXTENDED

NO                DESCRIPTION         ORDERED    PRICE                        PRICE

M128              BOOKCASE                4                   200.00                        800.00

B381               CABINET                      2                   150.00                        300.00           

R210              TABLE                          1                   500.00                        500.00

                                                                                    TOTAL                  1600.00

Normalize this user view. Make sure to show your work for each view – you should have 4 answers (e.g. Unnormalized, First Normal Form (1NF), Second Normal Form (2NF) and Third Normal Form (3NF). It is possible that some tables will be in 3NF without any changes to their 2NF status. You may just note that in your response. Also make sure to follow good DBDL protocol by capitalizing the relation name, putting attributes in parenthesis and underlining primary keys.

.

Solutions

Expert Solution

Given customer order is already in the unnormalized form.Below is the normalization process.

First Normal Form(1NF) :

Given is the table int the first normal from (1NF) .

OrderNo OrderDate CustomerNo CustomerName CustomerAddress City State Zip ProductNo Description QuantityOrdered UnitPrice ExtendedPrice
61384 9/24/2014 1273 Contemporary Designs 123 Oak ST Austin TX 28384 M128 Bookcase 4 200.00 800.00
61384 9/24/2014 1273 Contemporary Designs 123 Oak ST Austin TX 28384 B381 Cabinet 2 150.00 300.00
61384 9/24/2014 1273 Contemporary Designs 123 Oak ST Austin TX 28384 R210 Table 1 500.00 500.00

Second Normal Form (2NF) :

  • Given customerOrder table contains partial dependancies.
  • This table need to normalize into 2NF to remove partial dependancies.
  • Need to create new tables like
    • Customer :This table stores customer details
    • Product :This table stores product details

Below are tables in 2NF.

1.Table Name :Customer

Schema :Customer (CustomerNo,CustomerName,CustomerAddress,City,State,Zip)

FD :CustomerNo==>CustomerName,CustomerAddress,City,State,Zip

Below is the table data.

CustomerNo CustomerName CustomerAddress City State Zip
1273 Contemporary Designs 123 Oak ST Austin TX 28384

2.Table Name :Product

Schema :Product(ProductNo,Description,QuantityOrdered,UnitPrice,ExtendedPrice)

FD :ProductNo==>Description,QuantityOrdered,UnitPrice,ExtendedPrice

Below is the table data.

ProductNo Description QuantityOrdered UnitPrice ExtendedPrice
M128 Bookcase 4 200.00 800.00
B381 Cabinet 2 150.00 300.00
R210 Table 1 500.00 500.00

Third Normal Form (3NF) :

  • Above table needs to normalize into 3NF to remove transitive dependancies.

Below are tables in 3NF.

1.Table Name :Customer

Schema :Customer (CustomerNo,CustomerName,CustomerAddress,City,State,Zip)

FD :CustomerNo==>CustomerName,CustomerAddress,City,State,Zip

Below is the table data.

CustomerNo CustomerName CustomerAddress City State Zip
1273 Contemporary Designs 123 Oak ST Austin TX 28384

2.Table Name :Product

Schema :Product(ProductNo,Description,QuantityOrdered,UnitPrice,ExtendedPrice)

FD :ProductNo==>Description,QuantityOrdered,UnitPrice,ExtendedPrice

Below is the table data.

ProductNo Description QuantityOrdered UnitPrice ExtendedPrice
M128 Bookcase 4 200.00 800.00
B381 Cabinet 2 150.00 300.00
R210 Table 1 500.00 500.00

3.Table Name :Order

Schema :Order(OrderNo,OrderDate,CustomerNo)

FD :OrderNo,CustomerNo==>OrderDate

Below is the table data.

OrderNo OrderDate CustomerNo
61384 9/24/2014 1273

4.Table Name :OrderDetails

Schema :OrderDetails(OrderNo,ProductNo)

NOTE :This table is craeted because a single order contains multiple tables.

Below is the table data.

OrderNo ProductNo
61384 M128
61384 B381
61384 R210

Related Solutions

Positioning of the customer order decoupling point is important to understanding production environments. For example, firms...
Positioning of the customer order decoupling point is important to understanding production environments. For example, firms that serve customers from finished goods inventory are known as make-to-stock firms. Compare the different types of firms and its advantages (assemble-to-order, make-to-order, engineer-to-order) in terms of their customer order decoupling point.
Explain why order management and customer service are not mutually exclusive. please give example
Explain why order management and customer service are not mutually exclusive. please give example
A customer’s order is delivered (received by the customer) on September 10, 2019. This order was...
A customer’s order is delivered (received by the customer) on September 10, 2019. This order was placed with the company on June 5, 2019, and received by the manufacturing department on June 20, 2019. Actual production on the order began on July 10, 2019, and was completed August 10, 2019. Based on this information, calculate the following for this order: (a) total customer-response time (CRT), (b) order receipt time, (c) manufacturing lead (cycle) time, (d) manufacturing wait time, (e) manufacturing...
Question 57 A Customer must exist before an Order Header for that Customer can be added....
Question 57 A Customer must exist before an Order Header for that Customer can be added. True False Question 58 Each Supplier must supply at least one Part. True False Question 59 Every Order Header must have at least one Order Line. True False Question 60 Every Order Line must contain one and only one Product. True False
Higher-order conditioning example
Higher-order conditioning example
1For the revenue process which of the following document sequences is correct? Customer order, sales order,...
1For the revenue process which of the following document sequences is correct? Customer order, sales order, packing slip, bill of lading       Sales order, packing slip, customer order, bill of lading Customer order, bill or lading, sales order, packing slip Customer order, packing slip, sales order, bill of lading 2 During the current year, ending inventory was higher under the LIFO method than under the FIFO method. Which of the following statements about price changes is true? Prices were unchanged....
Sales Order Processing System The customer sales order is received via phone or through the mail....
Sales Order Processing System The customer sales order is received via phone or through the mail. Gus Grinwich, the sales clerk, receives the sales order and checks the customer’s credit record. Once Grinwich checks the customer’s credit record, he prepares the sales order. From this sales order, Grinwich prepares a customer copy, stock release, shipping notice, two copies of the invoice, ledger copy, packing slip, and the file copy. One of the invoice copies, the ledger copy, and the file...
At a Noodles & Company restaurant, the probability that a customer will order a nonalcoholic beverage...
At a Noodles & Company restaurant, the probability that a customer will order a nonalcoholic beverage is .49. a. Find the probability that in a sample of 13 customers, none of the 13 will order a nonalcoholic beverage. (Round your answer to 4 decimal places.) Probability b. Find the probability that in a sample of 13 customers, at least 6 will order a nonalcoholic beverage. (Round your answer to 4 decimal places.) Probability c. Find the probability that in a...
At a Noodles & Company restaurant, the probability that a customer will order a nonalcoholic beverage...
At a Noodles & Company restaurant, the probability that a customer will order a nonalcoholic beverage is .48. a. Find the probability that in a sample of 12 customers, none of the 12 will order a nonalcoholic beverage. (Round your answer to 4 decimal places.) Probability           b. Find the probability that in a sample of 12 customers, at least 5 will order a nonalcoholic beverage. (Round your answer to 4 decimal places.) Probability           c. Find the...
Suppose the probability of a customer placing an order at a pizza place for a pepperoni...
Suppose the probability of a customer placing an order at a pizza place for a pepperoni pizza is 0.6, and for something else with probability 0.4. We assume if a customer calls the pizza place, he orders something, and that all incoming calls are indepen- dent. What is the probability that the pizza place will get the first pepperoni pizza order on the 4th call of the day?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT