Question

In: Computer Science

-Using MySQL Workbench Data Modeler, create three (3) models from the tables below. Show Table 1...

-Using MySQL Workbench Data Modeler, create three (3) models from the tables below. Show Table 1 in 3rd Normal Form. Show Table 2 in 3rd Normal Form. Merge the 3rd Normal Forms of Table 1 and Table 2 into a single 3rd Normal Form model. Note that you only can model table and column names and data types. The data shown is for your reference to determine functional, partial, and transitive dependencies.
-Provide a summary of the steps you took to achieve 3rd Normal form. Include your rationale for new table creation, key selection and grouping of attributes.

Table 1 Table 2
Department ProductCode AisleNumber Price UnitofMeasure Supplier Product Cost Markup Price DeptCode
Produce 4081 1 $0.35 lb 21 – Very Veggie 4108 – tomatoes, plum $1.89 5% $1.99 PR
Produce 4027 1 $0.90 ea 32 – Fab Fruits 4081 – bananas $0.20 75% $0.35 PR
Produce 4108 1 $1.99 lb 32 – Fab Fruits 4027 – grapefruit $0.45 100% $0.90 PR
Butcher 331100 5 $1.50 lb 32 – Fab Fruits 4851 – celery $1.00 100% $2.00 PR
Butcher 331105 5 $2.40 lb 08 – Meats R Us 331100 – chicken wings $0.50 300% $1.50 BU
Butcher 332110 5 $5.00 lb 08 – Meats R Us 331105 – lean ground beef $0.60 400% $2.40 BU
Freezer 411100 6 $1.00 ea 08 – Meats R Us 332110 – boneless chicken breasts $2.50 100% $5.00 BU
Freezer 521101 6 $1.00 ea 10 – Jerry’s Juice 411100 – orange juice $0.25 400% $1.00 FR
Freezer 866503 6 $5.00 ea 10 – Jerry’s Juice 521101 – apple juice $0.25 400% $1.00 FR
Freezer 866504 6 $5.00 ea 45 – Icey Creams 866503 – vanilla ice cream $2.50 100% $5.00 FR
45 – Icey Creams 866504 – chocolate ice cream $2.50 100% $5.00 FR

Solutions

Expert Solution

ANSWER :

CREATE TABLE Product
(
  ProductID INT NOT NULL,
  ProductName VARCHAR NOT NULL,
  Cost FLOAT NOT NULL,
  MarkUp FLOAT NOT NULL,
  Price FLOAT NOT NULL,
  PRIMARY KEY (ProductID)
);

CREATE TABLE Supplier
(
  SuplierID INT NOT NULL,
  SuplierName INT NOT NULL,
  PRIMARY KEY (SuplierID)
);

CREATE TABLE Department
(
  Code CHAR NOT NULL,
  DepartmentName VARCHAR NOT NULL,
  AisleNumber INT NOT NULL,
  SuplierID INT NOT NULL,
  ProductID INT NOT NULL,
  PRIMARY KEY (Code),
  FOREIGN KEY (SuplierID) REFERENCES Supplier(SuplierID),
  FOREIGN KEY (ProductID) REFERENCES Product(ProductID)
);

( PLEASE VOTE FOR THIS ANSWER )

I THINK IT WILL BE USEFULL TO YOU .......

PLZZZZZ COMMENT IF YOU HAVE ANY PROBLEM I TRY TO SOLVE IT ....................

THANK YOU ................


Related Solutions

This is in MySQL Part one: Using the MySQL Workbench Data Modeler, construct a diagram that...
This is in MySQL Part one: Using the MySQL Workbench Data Modeler, construct a diagram that shows the table in 3rd Normal Form. Part two: Provide a summary of the steps you took to achieve 3rd Normal form. Include your rationale for new table creation, key selection and grouping of attributes. Table Details: The Anita Wooten Art Gallery wishes to maintain data on their customers, artists and paintings. They may have several paintings by each artist in the gallery at...
Using the world_x database you installed on your MySQL Workbench, create a new table named “independence”...
Using the world_x database you installed on your MySQL Workbench, create a new table named “independence” with the following attributes (columns): A field named “id” which has data type auto_increment, A field named “country_name” which has data type varchar(50), and A field named “independence_date” which has type “date.” After you create the table, run the following SQL command: INSERT INTO independence(country_name, independence_date) VALUE (‘United States’,’1776-07-04’) Submit a 1-page Microsoft Word document that shows the following: The SQL command you used...
In MySQL, create a new schema titled <yourlastname>module3. Using the below file, create the tables in...
In MySQL, create a new schema titled <yourlastname>module3. Using the below file, create the tables in your new schema and populate with the supplied data. Tables do not have keys. Do not define them at this time. There are errors in the data population (INSERT) statements. It is your job to find the errors and correct them. This is important. You will need correct data for future exercises in this module. In the submission area, choose Write Submission and identify...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The first database table will contain the names of at least four movies. The second table will be a list of actors who appear in the movies. The third table will be an associative table that describes the relationship between the actors and their movies (which actors appear in which movies). Actors and movies have a “many-to-many relationship,” meaning an actor can be in multiple...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The...
Create three MySQL database tables and write SQL scripts to read, insert, and delete data. The first database table will contain the names of at least four movies. The second table will be a list of actors who appear in the movies. The third table will be an associative table that describes the relationship between the actors and their movies (which actors appear in which movies). Actors and movies have a “many-to-many relationship,” meaning an actor can be in multiple...
Using WORKBENCH: 1. Create the database below via an ER Diagram in Workbench (take screen shots...
Using WORKBENCH: 1. Create the database below via an ER Diagram in Workbench (take screen shots of the diagram) 2. Go to the database table view and take a screen shot of the table(s) 3. Go to the data entry tool and enter at least three lines of data (in each table). Take screen shots. Create a database that is in third normal form for the following: You are a nerd and have decided to organize your comic books in...
Develop a C++/Python program using visual studio connected to mysql workbench to show all vendor's name...
Develop a C++/Python program using visual studio connected to mysql workbench to show all vendor's name and phone (vendor_name and vendor_phone) in the state "CA" and the city "Los Angeles". here is the database tables CREATE TABLE general_ledger_accounts ( account_number INT PRIMARY KEY, account_description VARCHAR(50) UNIQUE ); CREATE TABLE terms ( terms_id INT PRIMARY KEY AUTO_INCREMENT, terms_description VARCHAR(50) NOT NULL, terms_due_days INT NOT NULL ); CREATE TABLE vendors ( vendor_id INT PRIMARY KEY AUTO_INCREMENT, vendor_name VARCHAR(50) NOT NULL UNIQUE, vendor_address1...
Using MYSQL in terminal, create the tables for your above designed relational schema and populate your...
Using MYSQL in terminal, create the tables for your above designed relational schema and populate your tables with appropriate data. All except time slot and the relationship it participates in. Use the names for the tables and attributes from the ER schema. Use ON DELETE CASCADE for foreign keys. Each basic table (corresponding to an entity in the ER schema developed for Part 1) should have 5-10 rows. Campus can have just 2. Building should have at least 6. At...
Design a database/mysql that has 3 tables: TABLE 1 student: StudID (int), LastName (varchar), FirstName (varchar),...
Design a database/mysql that has 3 tables: TABLE 1 student: StudID (int), LastName (varchar), FirstName (varchar), MiddleName(varchar) TABLE 2 Course: StudID, CourseID TABLE 3 study course: CourseID(int), CourseTitle(varchar), Units(int), PreqCourse(varchar) ** Insert at least 5 records. ** Use the "select" command to view the content of the tables. ** POST THE SCREENSHOT
Pivot Tables - Please explain how to acheive the following: Using the data below, create a...
Pivot Tables - Please explain how to acheive the following: Using the data below, create a Pivot Table that answers the question “Which salesperson sold the most in any particular month.” A manager wants to click on the Pivot Table and choose a month and have the name of that person appear with his or her amount for that month. Sales Data Salesperson May June July Aug. Sept. Oct. Albertson, Kathy $3,947.00 $557.00 $3,863.00 $1,117.00 $8,237.00 $8,690.00 Allenson, Carol $4,411.00...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT