This is a simple list table of a company trying to keep track of parts that they sell and orders that came in purchasing those parts (in other words, not a database but a flat one table file). You will design a database for this company so that they won't be relying on a simple 1 table list system to keep track of their data. Looking at the table below, identify the separate entities and attributes and design a logical level Entity Relationship Diagram for this company. OrderNum OrderDate PartNum Description NumOrdered QuotedPrice 10/20/2010 10/20/2010 10/20/2010 $21.95 $495.00 $399.99 $329.95 $595.00 21608 AT94 Iron 11 21610 DR93 Gas Range 1 21610 DW11 Washer 1 10/21/2010 10/21/2010 10/23/2010 10/23/2010 21613 KL62 Dryer 4 21614 КТОЗ Dishwasher Home Gym $794.95 $150.00 $495.00 $1290.00 21617 BV06 2 21617 CD52 Microwave Oven 4 10/23/2010 10/23/2010 21619 DR93 Gas Range 1 21523 KV29 Treadmill

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

(THIS QUESTION HAS BEEN REJECTED MULTIPLE TIMES, PROVIDE PROPER REASONING BEFORE YOU REJECT AGAIN, NOT LOOKING TO FILL ALL THE DATA IN THE TABLE BUT SAMPLE QUERIES) 

I need help with sql queries to create a database and appropriate tables as listed

Need tables created, set constraints on attributes, set the relationship between the entities in the DB.

(Looking for detailed SQL queries.)

example: 

CREATE DATABASE my_records;
use my_records;

Create Tables

CREATE TABLE `parts` (

`parts_num` varchar(255) NOT NULL,
`description_parts` varchar(255) NOT NULL
);

### Scenario 2 - Educational Database Design Example

This is a sample list table used by a company to track parts that they sell and the orders that they receive for purchasing those parts. This table is not a database, but a flat one table file. The goal is to design a database for the company so they no longer have to rely on a simple 1 table list system for data management. By analyzing the table below, you will identify the distinct entities and attributes necessary to design a logical level Entity Relationship Diagram (ERD) for the company.

#### Sample List Table

| OrderNum | OrderDate | PartNum | Description       | NumOrdered | QuotedPrice |
|----------|------------|---------|-------------------|-------------|--------------|
| 21608    | 10/20/2010 | AT94    | Iron              | 11          | $21.95       |
| 21610    | 10/20/2010 | DR93    | Gas Range         | 1            | $495.00      |
| 21610    | 10/20/2010 | DW11    | Washer            | 1            | $399.99      |
| 21613    | 10/21/2010 | KL62    | Dryer             | 4            | $329.95      |
| 21614    | 10/21/2010 | KT03    | Dishwasher        | 2            | $595.00      |
| 21617    | 10/23/2010 | BV06    | Home Gym          | 2            | $794.95      |
| 21617    | 10/23/2010 | CD52    | Microwave Oven    | 4            | $150.00      |
| 21619    | 10/23/2010 | DR93    | Gas Range         | 1            | $495.00      |
| 21523    | 10/23/2010 | KV29    | Treadmill         | 2            | $1290.00     |

### Analysis for Entity Relationship Diagram (ERD)

#### Identified Entities and Attributes:

1. **Orders**
    - OrderNum (Primary Key)
    - OrderDate

2. **Parts**
    - PartNum (Primary Key)
    - Description
    - QuotedPrice

3. **OrderDetails**
Transcribed Image Text:### Scenario 2 - Educational Database Design Example This is a sample list table used by a company to track parts that they sell and the orders that they receive for purchasing those parts. This table is not a database, but a flat one table file. The goal is to design a database for the company so they no longer have to rely on a simple 1 table list system for data management. By analyzing the table below, you will identify the distinct entities and attributes necessary to design a logical level Entity Relationship Diagram (ERD) for the company. #### Sample List Table | OrderNum | OrderDate | PartNum | Description | NumOrdered | QuotedPrice | |----------|------------|---------|-------------------|-------------|--------------| | 21608 | 10/20/2010 | AT94 | Iron | 11 | $21.95 | | 21610 | 10/20/2010 | DR93 | Gas Range | 1 | $495.00 | | 21610 | 10/20/2010 | DW11 | Washer | 1 | $399.99 | | 21613 | 10/21/2010 | KL62 | Dryer | 4 | $329.95 | | 21614 | 10/21/2010 | KT03 | Dishwasher | 2 | $595.00 | | 21617 | 10/23/2010 | BV06 | Home Gym | 2 | $794.95 | | 21617 | 10/23/2010 | CD52 | Microwave Oven | 4 | $150.00 | | 21619 | 10/23/2010 | DR93 | Gas Range | 1 | $495.00 | | 21523 | 10/23/2010 | KV29 | Treadmill | 2 | $1290.00 | ### Analysis for Entity Relationship Diagram (ERD) #### Identified Entities and Attributes: 1. **Orders** - OrderNum (Primary Key) - OrderDate 2. **Parts** - PartNum (Primary Key) - Description - QuotedPrice 3. **OrderDetails**
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
SQL Query
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education