Testa Inc. is a company specializing on self-driving electric vehicle (EV) production. In Testa, a self-driving EV is represented as a model, which is identified by its Model_No and has the attributes of Model_Desc (description), Production_Date, and Model_Cost. Each model uses one to many parts in its production; each part may be used in zero to many models. The number of parts (Num_Parts) is recorded for each part used in a model. Each part is identified by Part_No and has the attributes of Part_Name, Part_Cost, and Effective_Date. Each part may consist of zero to many other parts; each part may be a component of zero to many other parts. The nearby entity-relationship diagram shows the aforementioned situation. Testa is asking you to develop a MySQL database to manage its part and model data. You will create the tables and their data in your MySQL account and upload the MySQL script here. First, you are required to download a text file (click here) and then open it using a text editing program (e.g., notepad in Windows, TextEdit in Mac; do not use Microsoft Word or other programs that would use incorrect characters and change the file format). When creating the tables, you are required to follow these guidelines: the data type for Part_No, Model_No and Num_Parts is INT; the data type for Part_Name is VARCHAR(32); the data type for Model_Desc is VARCHAR(64); the data type for Effective_Date and Production_Date is DATE; the data type for Part_Cost and Model_Cost is DECIMAL(10,2). The attributes of the Consists_Of_T table are Part_No, Component_No, and Quantity. The attributes of the Used_In_T table are Model_No, Part_No, and Num_Parts Write MySQL statements to create the tables to store data for the aforementioned situation. Write MySQL statements to insert the following records to the specified tables. Part_T table: (1,'EV Dashboard', 20.5, '2019-01-05'), (2, 'Key', 0.2, '2016-03-08'), (3, 'LCD screen', 150.7, '2017-10-18'), (4, 'Integrated Circuit', 405.17, '2020-06-29'), (5, 'Electric Charger', 1590.11, '2021-05-23') Model_T table: (101, 'MP9802', '2020-01-30', 2329.44), (102, 'MB1223', '2021-12-11', 2390.22), (103, 'MJ4362', '2022-11-15', 3219.33), (104, 'KT7821', '2018-02-21', 2091.22) Consists_Of_T table: (1, 2, 20), (1, 3, 2), (1, 4, 3), (1, 5, 1), (3, 2, 3), (4, 2, 2), (5, 1, 1), (5, 4, 2) Used_In_T table: (101, 1, 1), (102, 5, 1), (103, 3, 1), (104, 4, 3) Verify that all the problems are completed and all required file(s) is/are uploaded.
Testa Inc. is a company specializing on self-driving electric vehicle (EV) production. In Testa, a self-driving EV is represented as a model, which is identified by its Model_No and has the attributes of Model_Desc (description), Production_Date, and Model_Cost. Each model uses one to many parts in its production; each part may be used in zero to many models. The number of parts (Num_Parts) is recorded for each part used in a model. Each part is identified by Part_No and has the attributes of Part_Name, Part_Cost, and Effective_Date. Each part may consist of zero to many other parts; each part may be a component of zero to many other parts. The nearby entity-relationship diagram shows the aforementioned situation.
Testa is asking you to develop a MySQL
When creating the tables, you are required to follow these guidelines: the data type for Part_No, Model_No and Num_Parts is INT; the data type for Part_Name is VARCHAR(32); the data type for Model_Desc is VARCHAR(64); the data type for Effective_Date and Production_Date is DATE; the data type for Part_Cost and Model_Cost is DECIMAL(10,2). The attributes of the Consists_Of_T table are Part_No, Component_No, and Quantity. The attributes of the Used_In_T table are Model_No, Part_No, and Num_Parts
-
Write MySQL statements to create the tables to store data for the aforementioned situation.
- Write MySQL statements to insert the following records to the specified tables.
Part_T table: (1,'EV Dashboard', 20.5, '2019-01-05'), (2, 'Key', 0.2, '2016-03-08'), (3, 'LCD screen', 150.7, '2017-10-18'), (4, 'Integrated Circuit', 405.17, '2020-06-29'), (5, 'Electric Charger', 1590.11, '2021-05-23')
Model_T table: (101, 'MP9802', '2020-01-30', 2329.44), (102, 'MB1223', '2021-12-11', 2390.22), (103, 'MJ4362', '2022-11-15', 3219.33), (104, 'KT7821', '2018-02-21', 2091.22)
Consists_Of_T table: (1, 2, 20), (1, 3, 2), (1, 4, 3), (1, 5, 1), (3, 2, 3), (4, 2, 2), (5, 1, 1), (5, 4, 2)
Used_In_T table: (101, 1, 1), (102, 5, 1), (103, 3, 1), (104, 4, 3)
Verify that all the problems are completed and all required file(s) is/are uploaded.
.


Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 8 images

In the Testa EV
In the Testa EV









