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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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