Draw the relationships between the tables

Assignment Help Database Management System
Reference no: EM131045233

Use MySQL Workbench for these questions. Do NOT use Lucidchart. MySQL Workbench has more capability than Lucidchart, as it allows creation of DDL SQL from the model. Turn in 1 Workbench file , 1 document with the forward-engineered sql statements, and a Word document with your inserted data.

This problem mimics the one from the previous assignment. Model it in Workbench, then forward-engineer the database script and import into your database. If the import fails, fix it in the model, then try again.

A. Create the tables DEPARTMENT, EMPLOYEE, COMPUTER, and VEHICLE. Add the primary key field(s) and at least 2 non-key fields to each table that are relevant to that table (ie. PhoneNumber would be valid for EMPLOYEE). Use your model from the previous assignment to create the tables in Workbench.

B. Draw the relationships between the tables. Assume that a DEPARTMENT does not need to have an EMPLOYEE, but that every EMPLOYEE is assigned to a DEPARTMENT. The employee is assigned a laptop (COMPUTER) for his/her use, and it is not to be shared with other employees. The employee checks out a VEHICLE, but is not guaranteed a specific vehicle. So on different days, the employee may be driving a different vehicle.

C. Use the inserts tab under the table to add relevant data to the tables. Note: The inserts tool does NOT validate your data. For instance, if a field is set up as a numeric field, and you enter a letter, you will not receive an error until you actually run the script to insert the data in the table.

Make sure the business rules are met by inserting specific data:

A: Try to assign 2 employees to the same department.

B: Try to assign 2 computers to 1 user, and 2 users to 1 computer. (This should fail in step 1e below. Fix the model and/or the data before submitting).

C: Try to assign an employee to 2 vehicles, and a vehicle to 2 employees.

D. Forward-Engineer the database, and make sure to check "Generate INSERT Statements for Tables." In the "Review the SQL Script to be Executed" screen, click "Save To File..." Choose a name like "A11.sql".

E. If the script fails, fix the model and/or the insert data, forward-engineer the script again, then re-run the script. Do this until you don't have any errors.

F. Once the script executes successfully, go back to the model and copy the data from each table into a Word document. The data should paste in as a table. To copy data from Workbench, open the Inserts tab from C above. Select all data by clicking on the area above and to the left of the table (see example right). Type Ctrl-C to copy the data. Paste it into a Word document. Continue with all of the tables. Save the document to a file like "A11.docx".

Reference no: EM131045233

Questions Cloud

Considering two investment options : You are considering two investment options. In option A, you have to invest $4500 now and $800 three years from now. In option B, you have to invest $4000 now, $1200 a year from now, and $1000 three years from now. In both options, you will receive f..
Face value bond has two years left to maturity : Emacs Co. issued 13-year, $1,000 face value bonds one year ago at a coupon rate of 9.7 percent. The bonds make semiannual payments. If the YTM on these bonds is 7.4 percent, what is the current bond price? A $1000 face value bond has two years left t..
Tiller construction corporation and nadler : Ronald Nadler was a resident of Maryland and the CEO of Glenmar Cinestate, Inc., a Maryland corporation, as well as its principal stockholder. Glenmar leased certain space in the Westridge Square Shopping Center, located in Frederick, Maryland, an..
Stock repurchase announcement will increase stock price : Additional problem: The equity of a certain company has a market value for $3 million. It currently has 300,000 shares outstanding, and a book value of equity of $1,095,000. If management estimates that a stock repurchase announcement will increase s..
Draw the relationships between the tables : Draw the relationships between the tables. Assume that a DEPARTMENT does not need to have an EMPLOYEE, but that every EMPLOYEE is assigned to a DEPARTMENT.
Which is more difficult to model the process or the entity : Simulations are essential models for processes with a mathematical representation of the entity behavior. Which is more difficult to model: the process or the entity behavior?
Planning for your retirement : You are planning for your retirement and have decided the following: you will retire in 35 years and would like to have $8,000 per month as retirement income for 30 years of retirement. You have access to an account that earns a 7% rate of return. Ho..
Modular architecture for high-performance packet switching : I have uploaded paper and desired output figure. You have to complete fig 5 and fig 11 in that paper. Values are there in respective sessions. Paper - The Knockout Switch: A Simple, Modular Architecture for High-Performance Packet Switching
Why the given situation represents a risk : Auditing ACCT 3000 - Identify and discuss why the above situation represents a risk and By applying auditing knowledge, identify the main account or group of accounts affected in the audit plan by the risks identified in (a).

Reviews

Write a Review

Database Management System Questions & Answers

  Describe the six default referential integrity actions.

How are N:M relationships implemented?

  Create a switchboard for your database

Do not use the Main Switchboard page that is provided for you, but rather create a new Switchboard named with your first name and the word Switchboard. (For example, mine is called Janis Switchboard.)

  Compare the two non-sequential file structure models

What advantages does the first one have over the second and what advantages does the second have over the first?

  Prepare a query that lists each course name and its cost

Prepare a query that lists the cost per student for each class. Assume maximum capacity and that you will schedule two half-day classes on the same day to take full advantage of HOTT's per day pricing schedule.

  Create microsoft access database

Create a Microsoft Access database. Create the tables, fi elds, data types, and primary key(s) for the database. Create the relationship(s) needed between the tables.

  Explain use of sequential file over database

Explain these situations. When would the database be more beneficial than sequential file? Is it possible for two kinds of permanent storage to be used interchangeably?

  Construct an er diagram for a hospital

Construct an er diagram for a hospital with a set of patients and a set of medical doctors. associate with each patient a log of various test and examination conducted.convert er diagram into tables

  Provide an entity relationship model

Provide an Entity Relationship Model (ERM) that will describe the data structure that will store all data elements.Note:The graphically depicted solution is not included in the required page length.

  Write a select statement that joins the categories table

Write a SELECT statement that joins the Categories table to the Products table and returns these columns: CategoryName, ProductName, ListPrice.

  Create a new table in which to store publisher information

In the following project, you will open a database containing the inventory of a bookstore, create a new table in which to store publisher information, add records, and then sort the table

  Write the file, type wq!, and then press enter

Enter the following text and make sure you press Enter at the end of each line. (Each row is considered an employee record with colons separating the fields. The first field is the employee number. The second field is the employee name, and the th..

  Devise a conceptual model that will best address

Submit the preliminary design of the database. Devise a conceptual model that will best address the scenario you selected for the final project

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd