Ask Business Management Expert

Database Construction Using MySQL
Note!

Submit your assignment to the Dropbox, located at the top of this page.

(See the Syllabus section "Due Dates for Assignments & Exams" for due dates.)

iLAB OVERVIEW

Scenario/Summary

In this assignment, you will learn to create a MySQL database from a given ERD. To complete this assignment, you will need to be able to run MySQL via Omnymbus.

Please ensure that you can connect to MySQL/Omnymbus via the account your Professor has e-mailed to you. Please consult with the document titled MySQLOmnymbusSupport.docx located in the Doc Sharing folder titled Omnymbus Tutorial Files for instructions on how to get help for any issues that you are having with the MySQL/Omnymbus Environment.

Deliverables

SQL script file named LastName_Lab3.sql. Word document named LastName_Lab3_Output. When you are done, zip up these files and submit them to the Week 5: iLab Dropbox.

Required Software

Omnymbus - MySQL

Access the software at https://devry.edupe.net:8300.

Steps 1-8

iLAB STEPS

STEP 1: Entity Relationship Diagram Analysis
Back to Top

Review the ERD below to understand the entities, attributes, primary keys, and relationships that you will create in your MySQL database.

STEP 2: Open MySQL via Omnymbus, Create SQL File, Drop Table
Back to Top

To reference, learn and apply MySQL's own dialect of the SQL language to this iLab, browse through the file M10C_KROE8352_13_SE_WC10C.pdf in the Doc Sharing folder titled My SQL Documents.Create a script file named LastName_Lab3.sqlcontaining SQL statements created in Steps 3-7 below.Include DROP TABLE statements at the beginning of the SQL script file to ensure that tables are dropped when executing SQL script repeatedly. The following is an example of a DROP TABLE statement in MySQL;

SET FOREIGN_KEY_CHECKS=0; DROP TABLE tablename; (list all tables in database) SET FOREIGN_KEY_CHECKS=1;

STEP 3: Add Tables, Set Primary Keys and Foreign Keys
Back to Top

Add tables to the MySQL database.

Add a table for each entity listed in the provided ERD diagram.Add a column for each attribute listed in the provided ERD diagram.Select primary key for each table as indicated in the provided ERD diagram.Identify foreign key relationship between tables as indicated in the provided ERD diagram.Enable referential integrity on the relationship.Enable cascade updates on the relationship.

STEP 4: Set Data Types for Table Fields
Back to Top

For every column in every table, update the data type as needed to enforce the domain constraints of the data.

Dates should have a date data type.Surrogate keys should be auto-numbered.Numeric data should have a numeric data type.Character data should have a character data type.

STEP 5: Set Column Constraints
Back to Top

Set the following column constraints in your database.

Student first and last name cannot be a null value.Course credit hours must be between one and four.Course name must be unique and cannot be a null value.Instructor first and last name cannot be a null value.Grade must be one of these values: A, B, C, D, F, I, W, or E. W signifies withdrawn and E signifies enrolled.

STEP 6: Add Data to Tables
Back to Top

Write INSERT statements to add at least 2-3 rows of data to each table in your database. Use any values that you like for each of the columns. Remember that you must add data to parent tables before adding data to child tables, because referential integrity is enabled.

STEP 7: Run the Script
Back to Top

Set the following column constraints in your database.

Include a COMMIT command at the end of the script.Include SHOW TABLES command at the end of the script, to show all tables created.Include SELECT statements for each table at the end of the script, to show data inserted.Paste a copy of the output in a MS Word document named LastName_Lab3_Output.

Step 8: Save and Upload to Dropbox
Back to Top

When you are done, zip up the following files to the Week 5: iLab Dropbox:

LastName_Lab3.sql script file.LastName_Lab3_Output Word document.

RubricBack to Top

Points will be awarded according to the following rubrics.

5 points: Table created for each entity in the provided E-R model5 points: Column created for each attribute in the provided E-R model5 points: Primary key added for each table with unique constraints specified as column properties5 points: Data type set for each attributeDates should have a date data type.Surrogate keys should be autonumbered.Numeric data should have a numeric data type.Character data should have a character data type.10 Points: Relationships created as shown on the provided E-R modelRelationships enabled for referential integrityRelationships enabled for cascade updates.10 Points: At least five rows of data added for each table10 Points: Column constraints added as indicated in project description, checked by adding rows to data with invalid valuesStudent name cannot be set to null.Course credit hours are restricted to between one and four.Course name must be unique and cannot be set to null.Instructor last name and first name cannot be set to null.Grade is restricted to be one of these values: A, B, C, D, F, I, W, or E (enrolled)

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M91199714

Have any Question?


Related Questions in Business Management

Name a company that addressed a recent ethical problem in a

Name a company that addressed a recent ethical problem in a positive way. Also, explain how or if this positively affects us as a community?

When it is appropriate to use the trade-off process what

When it is appropriate to use the trade-off process. What conditions apply, and the technical evaluation criteria that might be used?

Need help with a essay with the following phrase for

Need help with a essay with the following phrase for analyzing : " Capitalism is at the heart of how people and organisations are managed in contemporary society" May i ask for a better explanation of the question? Also ...

How could these three tenets of the auburn creed be used to

How could these three tenets of the Auburn Creed be used to motivate others: "I believe that this is a practical word and that I can count only on what I earn. Therefore, I believe in work, hard work." "I believe in educ ...

How can these two tenets of the auburn creed by used in

How can these two tenets of the Auburn Creed by used in addressing teamwork issues: "I believe in honesty and truthfulness, without which I cannot win the respect and confidence of my fellow men." "I believe in the human ...

Discuss the advantages of having and interacting in a

Discuss the advantages of having and interacting in a diverse workplace. Consider the wide range of ideas and perspectives that a range of team members bring to a team, that are of differing ages, ethnic backgrounds and ...

Parmigiano-reggiano global recognition of geographical

Parmigiano-Reggiano: Global Recognition of Geographical Indications What historical factors have helped support the consortium's claims for the geographic specificity of Parmigiano-Reggiano and Parmesan? What are the eco ...

Communication planthis communication plan will be a roadmap

Communication Plan This communication plan will be a roadmap on how the new division will best be able to communicate with Biotech's corporate headquarters, suppliers, other divisions, and internally. This should lay out ...

Discuss strategies to obtain feedback from a customer and

Discuss strategies to obtain feedback from a customer and clients when working in sales.

Describe different networking methods and the advantages

Describe different networking methods and the advantages and disadvantages of them?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As