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.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter10: Data Analysis With Power Tools And Creating Macros
Section: Chapter Questions
Problem 6AYK
icon
Related questions
Question
100%

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

  1. Write MySQL statements to create the tables to store data for the aforementioned situation.

  2. 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.

.

PART
Part No
Part Name
Part Cost
Effective Date
-consists of
Quantity
is_used_in.
Num_Parts
-0€
MODEL
Model No
Model Desc
Production Date
Model Cost
Transcribed Image Text:PART Part No Part Name Part Cost Effective Date -consists of Quantity is_used_in. Num_Parts -0€ MODEL Model No Model Desc Production Date Model Cost
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 8 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

In the Testa EV database design described in the previous question, please complete a field specifications form for the field 'Model_Cost' of the table 'Model_T'. The field records the cost of producing a specific EV model. Because its data come from the cost data of specific parts used to build the model, its value can be entered later and editing is allowed (null is allowed). The field value is required. Only decimal numeric data are supported for the entered value. The field can store a maximum of 10 digits (including 2 decimal places). The user of the database (data analyst) is responsible for entering and maintaining the data. No specific range of values is specified for this field. You should enter 'N/A' (or leave it unchecked) for elements that are not applicable. 

Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

In the Testa EV database described in the previous question, fill in the blanks in the following MySQL statement to list (in this order) all the part numbers of components of 'EV Dashboard' (with Part_No=1) and their quantities; sort the results in ascending order of quantity of components (i.e., components with small quantities are listed first). (Please ensure correctness in the spelling of all names and commands. Do not enter unnecessary symbols such as spaces or commas)

In the Testa EV database described in the previous question, fill in the blanks in the following MySQL
statement to list (in this order) all the part numbers of components of 'EV Dashboard' (with
Part_No=1) and their quantities; sort the results in ascending order of quantity of components (i.e.,
components with small quantities are listed first). (Please ensure correctness in the spelling of all
names and commands. Do not enter unnecessary symbols such as spaces or commas)
SELECT
FROM
WHERE
ORDER BY
=1
Transcribed Image Text:In the Testa EV database described in the previous question, fill in the blanks in the following MySQL statement to list (in this order) all the part numbers of components of 'EV Dashboard' (with Part_No=1) and their quantities; sort the results in ascending order of quantity of components (i.e., components with small quantities are listed first). (Please ensure correctness in the spelling of all names and commands. Do not enter unnecessary symbols such as spaces or commas) SELECT FROM WHERE ORDER BY =1
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Computing Algorithms
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L