Question

In: Computer Science

factory (including the name and the name of the director) needs to establish a management database...

factory (including the name and the name of the director) needs to establish a management database to store the following information: I) A factory has a number of workshops, each workshop has the workshop number, workshop director's name, address and telephone number. II) There are more than one workers in each workshop, and each worker has a staff number, name, age, sex type of work. III) A workshop produces a variety of products, each of which has the product number and price. IV) A workshop produces a variety of parts, and one kind of parts may be manufactured by different workshops. Each part has the part number, weight and price. V) A product is consist of a variety of parts, and one kind of parts can be used to assemble a variety of products. VI) Products and parts are stored in the warehouses. VII) A factory has multiple warehouses, each of which has the warehouse number, name and phone of the warehouse director.

(1) Give the ER diagram for this management database.

(2) Mapping the ER diagram into the conceptual schema, and indicate the primary keys and foreign keys.

Solutions

Expert Solution

1) ER Diagram:

Please find below the steps to create ER Diagram for the given system:

Step 1: List entities along with attributes:

a) Workshop(workshop_no, director_name, address, telephone)

b) Worker(Staff_no, Name, Age, Sex, Work_Type)

c) Product(Product_name, Price)

d) Part(Part_no, Weight, Price)

e) Warehouse(Warehouse_no, Name, Phone)

Step 2: List the relationship between the entities:

a) Worker works under one workshop and a workshop has many workers. It is M:1 relationship.

b) Workshop produces number of products and it is assumed that one product is produced by one workshop only. It is 1:M relationship.

c) Workshop produces number of parts and a part is produced at many workshops. It is a M:N relationship.

d) Product consists of many Parts and a Part is used in assembling many Products. It is M:N relationship.

e) Warehouse has many Products and Parts. It is assumed that a kind of product and part is stored in only one warehouse. It is 1:M relationship.

Step 3: Create ER diagram:

2) ER Diagram with Primary and Foreign key

Please follow below steps to create ERD with keys in it:

Step 1: Resolve relationship by adding new entities OR adding foreign keys:

**Primary key is bold and foreign key is marked italic

a) Worker will have the workshop_id as foreign key where he works

Worker(Staff_no, name, age, sex, work_type, workshop_no)

b) Part need to store its workshop where it is stored:

Part(Part_no, Weight, Price, Warehouse_no)

c) Products will store the warehouse_no where these are stored:

Product(Product_name, Price, Warehouse_no)

d) Product will store the workshop where the products are created:

Product(Product_name, Price, Warehouse_no, workshop_no)

e) Parts to workshop is a M:N relationship to be stored as separate table as below:

Workshop_Parts(Workshop_no, Part_no)

f) Product and part is M:N relationship which needs to be stored as:

Product_Parts(Product_name, Part_no)

Step 2: Create ERD model:

PK denotes Primary key and FK denotes Foreign key:


Related Solutions

Your organization's database needs include the following: Multiple departments will require access to the database, including...
Your organization's database needs include the following: Multiple departments will require access to the database, including eCommerce, manufacturing, sales, and customer service Employees will use the database to: Enter data Reference data Use data to auto-populate new orders and customer service records Analyze data and create reports Recommend three of the following six database architecture types that would work for your organization: Hierarchical Network Relational Distributed Relational Object-Oriented Cloud Include the following in your recommendation: Your top three recommended architectures,...
Suppose that the director of manufacturing at a clothing factory needs to determine whether a new...
Suppose that the director of manufacturing at a clothing factory needs to determine whether a new machine is producing a particular type of cloth according to the manufacturer’s specifications, which indicate that the cloth should have a mean breaking strength of 70 pounds and a standard deviation of 3.5 pounds. A sample of 49 pieces reveals a sample mean of 69.1 pounds. The director is willing to tolerate a probability of .05 of rejecting the null hypothesis when it is...
Problem 1. The director of manufacturing at a clothing factory needs to determine whether a new...
Problem 1. The director of manufacturing at a clothing factory needs to determine whether a new machine is producing a particular type of cloth according to the manufacturer’s specifications, which indicate that the cloth should have a mean breaking strength of 70 pounds and a standard deviation of 3.5 ponds. A sample of 49 pieces of cloth reveals a sample mean breaking strength of 69.1 pounds. Is there evidence that the machine is not meeting the manufacturer’s specifications for mean...
The management of Kiboko Ltd. want to establish the amount of financial needs for the next...
The management of Kiboko Ltd. want to establish the amount of financial needs for the next two years. The balance sheet of the firm as at 31 December 2001 is as follows: Sh.’000’ Net fixed assets Stock Debtors Cash Total assets 124,800 38,400 28,800     7,200 199,200 Financed by: Ordinary share capital Retained earnings 12% long-term debt Trade creditors Accrued expenses 84,000 35,200 20,000 36,000 24,000 199,200 For the year ended 31 December 2001, sales amounted to Sh.240, 000,000. The...
Database Management Systems for Business Name the data model that is only used to document a...
Database Management Systems for Business Name the data model that is only used to document a database design. 6.         State the most important characteristics regarding the output of any relational algebra operation. Name the software system that permits the data in a distributed database to be transparent to users. Use two words to distinguish a file based systems and a database. 9.        Name the level to represent an organization view in the three-level ANSI-SPARK architecture. 10.       Name the terminology of...
Database Design and Management Question: Discuss the security needs of DBMS solution. Recommend a comprehensive but...
Database Design and Management Question: Discuss the security needs of DBMS solution. Recommend a comprehensive but high-level security management plan for the design.
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name....
Question 1: In the NCBI database, retrieve the nucleotide sequences NG011676. Report: Gene name, database name. Number of exons and its position (the start and the end of each exon). The start and the end of coding region (CDS) Accession number of protein from this gene and the length of polypeptide. Question 2: Use NG011676 to run GenScan. Report the results and compare the results with information of this gene from Question 1. Question 3: Use NG011676 to run FGENESH...
1.Create a Database in Access with the information The database must include: Database name: Monaco Enterprise  Mark...
1.Create a Database in Access with the information The database must include: Database name: Monaco Enterprise  Mark Johnson #87451 Table name: Contacts Delete the Primary key. Fields name and data type are (remember to choose the data type): Field Name Data Types Employee Name Short text Name Short text Last Name Short Text Work Yes/No 2.Go to the “Datasheet View” and enter the data. * Remember to save the table. 3.Move the last name field after the employee name. 4.The (data)...
Define database relationship and name its type?
Define database relationship and name its type?
Database exercise: inpatient cases Create database using name RUMKIT Create tables below in that database patient(idPatient,...
Database exercise: inpatient cases Create database using name RUMKIT Create tables below in that database patient(idPatient, fullName, biologicalMother, birthdate, address) doctor(idDr, fullName, specialization, consulRates) inpatient(idPatient, entryTime, outTime, idDr, idRoom). Please make entryTime as column that is going to be filled automatically when care record is being add room(idRoom, roomName, cost) fill the data above to each table Create sql query and relational algebra expressions for the query Please give me detailed answer so I could learn from it. Thank you...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT