Question

In: Computer Science

It is required to develop the normalization from the Relational Model for the clothing store: Modarte...

It is required to develop the normalization from the Relational Model for the clothing store: Modarte S.A. de C.V.

-Step 1: Entity-Relationship Model

The clothing store Modarte S.A. de C.V. It has various products for women, men, boys and girls, which requires generating an Entity-Relationship Model for inventory control and sales management.

It is required to develop 3 tables: products, employees and customers.

In the Products table the following fields must be considered: product code, product name, type, size, purchase date, sale date and quantity in stock.

In the Employees table, the following fields must be considered: Employee ID, Employee Name, Address, Telephone and CURP.

In the Clients table, the following fields must be considered: client number, Client name, address, e-mail, payment method, and RFC for billing.

In the Sales table the following fields must be considered: sales code, sale date, payment method and total to pay.

The Products-Sale Relationship contains the following fields: product code and sales code

- Step 2: First normal form.

- Step 3: Second normal form.

- Step 4: Third normal form.

Solutions

Expert Solution

Table with fields

Products – productCode(PK),productName,type,size,purchaseDate,saleDate,quantity

Employees – employeeId(PK),employeeName,address,phone,curp

Clients – clientNumber(PK),clientName,address,email,payMthod,rfc

Sales – salesCode(PK),saleDate,payMethod,totalPay

Entity-Relationship Model

First Normal Form [1NF]

A database is in first normal form if it satisfies the following conditions:

  • Contains only atomic values
  • There are no repeating groups

In the Employee table address, phone are multi valued attributes. If the table should be like this:

employeeId

employeeName

Address

Phone

Curp

101

James

First street plot no 4

9845673489, 9645677832

J237801

102

Peter

Park avenue flat no 123

945239876

P25678

According to 1NF the above table must be like this:

employeeId

employeeName

Address

Phone

Curp

101

James

First street plot no 4

9845673489

J237801

101

James

First street plot no 4

9645677832

J237801

102

Peter

Park avenue flat no 123

945239876

P25678

In the client table email attribute is multi-valued attribute. So that should be also split like above table.

Second Normal Form

· In the 2NF, relational must be in 1NF.

· In the second normal form, all non-key attributes are fully functional dependent on the primary key

productCode

productName

Type

Size

purchaseDate

saleDate

quantity

1001

Shirt

Cotton

40

12/10/2020

10/11/2020

5000

1001

Shirt

Cotton

40

12/10/2020

12/11/2020

3000

1001

Shirt

Cotton

40

12/10/2020

20/11/2020

2500

The above table can be split like below:

productCode

productName

Type

Size

purchaseDate

Quantity

1001

Shirt

Cotton

40

12/10/2020

5000

1001

Shirt

Cotton

40

12/10/2020

3000

1001

Shirt

Cotton

40

12/10/2020

2500

productCode

productName

Type

Size

saleDate

quantity

1001

Shirt

Cotton

40

10/11/2020

5000

1001

Shirt

Cotton

40

12/11/2020

3000

1001

Shirt

Cotton

40

20/11/2020

2500

Third Normal Form

  • A relation will be in 3NF if it is in 2NF and not contain any transitive partial dependency.
  • 3NF is used to reduce the data duplication. It is also used to achieve the data integrity.
  • If there is no transitive dependency for non-prime attributes, then the relation must be in third normal form.

A relation is in third normal form if it holds atleast one of the following conditions for every non-trivial function dependency X Y.

  1. X is a super key.
  2. Y is a prime attribute, i.e., each element of Y is part of some candidate key.

employeeId

employeeName

Address

Phone

Curp

101

Sherin

Third cross no 12

9654329874

S78654

102

James

First street plot no 4

9645677832

J237801

103

Peter

Park avenue flat no 123

945239876

P25678

FD set:


{employeeId -> employeeName, employeeId -> phone, employeeId -> curp, employeeId -> address}

Candidate Key:


{employeeId}


Related Solutions

Part #4: Data normalization: Background: Data in a relational database is stored in a normalized form....
Part #4: Data normalization: Background: Data in a relational database is stored in a normalized form. Data normalization or just normalization is a strategy used to organize data into multiple related tables to reduce data redundancy while preserving data integrity. Exercise: Normalize the student data in the University table (sample data is shown further below) into 3 tables, namely, Student, Department, and Course. You do not need to populate data. Just illustrate the schema for the 3 tables. You may...
To complete this task you are required to design an information system for Fashion clothing store...
To complete this task you are required to design an information system for Fashion clothing store to assist with their business. You have discussed Porter’s Value Chain in class and you should understand the Primary and support activities within businesses. For this task you need to concentrate on Marketing and Sales only. The development of your professional skills includes researching information systems to assist with organisational issues that are encountered in contemporary business. You will be learning important ‘agile’ skills...
Question 2) Internal Controls Ramona's Clothing is a retail store specializing in women's clothing. The store...
Question 2) Internal Controls Ramona's Clothing is a retail store specializing in women's clothing. The store has established a liberal return policy for the holiday season in order to encourage gift purchases. Any item purchased during November and December may be returned through January 31, with a receipt, for cash or exchange. If the customer does not have a receipt, cash will still be refunded for any item under $75. If the item is more than $75, a check is...
Part 1. Internal Controls Ramona's Clothing is a retail store specializing in women's clothing. The store...
Part 1. Internal Controls Ramona's Clothing is a retail store specializing in women's clothing. The store has established a liberal return policy for the holiday season in order to encourage gift purchases. Any item purchased during November and December may be returned through January 31, with a receipt, for cash or exchange. If the customer does not have a receipt, cash will still be refunded for any item under $75. If the item is more than $75, a check is...
If a clothing store customer takes a pair of pants from the rack, removes all of...
If a clothing store customer takes a pair of pants from the rack, removes all of the external sales tags, and then approaches the sales clerk for a refund, what crime may be charged? Theft Criminal mischief Embezzlement None of the above
Zeta Department Store has developed the following information in order to develop a TDABC model for...
Zeta Department Store has developed the following information in order to develop a TDABC model for its accounts receivable department: Activity Estimated worker time to perform activity manual processing of invoice and cash receipt 1.0 hour electronic processing of invoice and electronic funds transfer 0.1 hour maintain customer file 0.5 hour The time to process payments of customer invoices depends on whether the customer pays the bill manually or electronically, as shown above. The time to maintain each customer file...
Explain the differences among hierarchical, network, and relational data models. What makes the relational data model...
Explain the differences among hierarchical, network, and relational data models. What makes the relational data model the most popular data model in use today? (DQ 4-1)
Use the following data to develop a quadratic model to predict y from x. Develop a...
Use the following data to develop a quadratic model to predict y from x. Develop a simple regression model from the data and compare the results of the two models. Does the quadratic model seem to provide any better predictability? Why or why not? x y x y 15 229 15 247 9 74 8 82 6 29 5 21 21 456 10 94 17 320
To better understand customer satisfaction with the service in the store a local clothing store decides...
To better understand customer satisfaction with the service in the store a local clothing store decides to conduct a survey. An employee of the store is asked to approach the first ten customers as they enter the store on three randomly selected Mondays in April, May, and June. The employee asks each customer, "How satisfied are you with the customer service in this store on a scale of 1-5 with 1 being not satisfied and 5 being very satisfied?" Identify...
14.1)use the following data to develop a quadratic model to predict y from x. develop a...
14.1)use the following data to develop a quadratic model to predict y from x. develop a simple regression model from the data and compare the results of the two models. Does the quadratic model seem to provide any better predictability? Why or why not ?       x       y         x       y 14 200 15 247 9 74 8 82 6 29 5 21 21 456 10 94 17 320 Answer:simple model: y^=   -14.27+27.128x, F=229.67 with p=.000, se=27.27, R2=.97,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT