iLab 3 of 4: The Week 5 iLab: Database Construction Using MySQL ( 50 points)

iLab 3 of 4: The Week 5 iLab: Database Construction Using MySQL ( 50 points)


Haven’t Found The Relevant Content? Hire a Subject Expert to Help You With
iLab 3 of 4: The Week 5 iLab: Database Construction Using MySQL ( 50 points)
Post Your Own Question And Get A Custom Answer
Hire Writer

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.)



In this assignment, you will learn to create a  Database Schema 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.   Consult with the document titled MySQLOmnymbusSupport.docx located in the Doc Sharing folder titled Omnymbus Tutorial Files for instructions.   Contact your instructor for help for any issues that you are having with the MySQL/edupe Environment.


SQL script file named LastName_Wk5.sql. That is a txt document with the .sql extension. A text document named LastName_Wk5_Output.txt. When you are done submit them to the Week 5: iLab Dropbox. Files that have been opened or processed by any software than Notepad are not acceptable.  Zipped files are not acceptable and may be returned ungraded.

Required Software

Omnymbus – MySQL in the edupe environment.  SQLZOO may be used to test the scripts.

Access the software at

Steps 1–8


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 1: Create a New Database

·        Create a new database following the naming conventions we are using for our databases, as specified in the tutorial file Creating a Database within MySQL.pdf listed in the doc-sharing folder titled “Omnymbus Tutorial Files” in Doc-Sharing. All of our work in this iLab, will be done under this database.

STEP 2: Create SQL File

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_Wk5.sql containing SQL statements created in Steps 3–7 below.
  • But first include the following commands at the top of your script:

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

  • 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.
  • Give your script a run, by uploading into Omnymbus and executing it just like you did in iLab1.
  • 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, submit the following files to the Week 5: iLab Dropbox:

  • LastName_Wk5.sql  A text file you created with Notepad
  • LastName_Wk5_Output.txt A text file created by copy and paste from edupe.


Back to Top

Points will be awarded according to the following rubrics.

  • 5 points: Table created for each entity in the provided E-R model
  • 5 points: Column created for each attribute in the provided E-R model
  • 5 points: Primary key added for each table with unique constraints specified as column properties
  • 5 points: Data type set for each attribute
    • Dates 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 model
    • Relationships enabled for referential integrity
    • Relationships enabled for cascade updates.
  • 10 Points: At least five rows of data added for each table
  • 10 Points: Column constraints added as indicated in project description, checked by adding rows to data with invalid values
    • Student 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).

Calculate the price of your order

Select your paper details and see how much our professional writing services will cost.

We`ll send you the first draft for approval by at
Price: $36
  • Freebies
  • Format
  • Formatting (MLA, APA, Chicago, custom, etc.)
  • Title page & bibliography
  • 24/7 customer support
  • Amendments to your paper when they are needed
  • Chat with your writer
  • 275 word/double-spaced page
  • 12 point Arial/Times New Roman
  • Double, single, and custom spacing
  • We care about originality

    Our custom human-written papers from top essay writers are always free from plagiarism.

  • We protect your privacy

    Your data and payment info stay secured every time you get our help from an essay writer.

  • You control your money

    Your money is safe with us. If your plans change, you can get it sent back to your card.

How it works

  1. 1
    You give us the details
    Complete a brief order form to tell us what kind of paper you need.
  2. 2
    We find you a top writer
    One of the best experts in your discipline starts working on your essay.
  3. 3
    You get the paper done
    Enjoy writing that meets your demands and high academic standards!

Samples from our advanced writers

Check out some essay pieces from our best essay writers before your place an order. They will help you better understand what our service can do for you.

Get your own paper from top experts

Order now

Perks of our essay writing service

We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.

  • Swift delivery
    Our writing service can deliver your short and urgent papers in just 4 hours!
  • Professional touch
    We find you a pro writer who knows all the ins and outs of your subject.
  • Easy order placing/tracking
    Create a new order and check on its progress at any time in your dashboard.
  • Help with any kind of paper
    Need a PhD thesis, research project, or a two-page essay? For you, we can do it all.
  • Experts in 80+ subjects
    Our pro writers can help you with anything, from nursing to business studies.
  • Calculations and code
    We also do math, write code, and solve problems in 30+ STEM disciplines.

Frequently asked questions

Get instant answers to the questions that students ask most often.

See full FAQ
  • What if I’m dissatisfied with the paper I get?

    The average quality score at our professional custom essay writing service is 8.5 out of 10. The high satisfaction rate is set by our Quality Control Department, which checks all papers before submission. The final check includes:
    • Compliance with initial order details.
    • Plagiarism.
    • Proper referencing.
    If for some reason we happen to leave a mistake unnoticed, you are invited to request unlimited revisions of your custom-written paper. For more information, check our Revision Policy. We will do our best to make your experience with Familiar Essays enjoyable.
  • I need an essay on the same day. Is it something you can do?

    Sure. Our writing company offers a fast service with an 8-hour deadline for orders up to master’s level. Make sure to specify the deadline in the order form and our writers will write a paper within the indicated timeslot. Just proceed to submit your requirements here Once you order a custom-written essay, our managers will assign your order to the well-suited writer, who has the best skills and experience for preparing your specific assignment. You can also request one of these extra features:
    • Choose the Writer’s Samples option – study 3 randomly-provided pages from orders that have been written by the assigned writer.
    • Request a specific writer – choose an academic writer from the dropdown list in the order’s form (optional for returning customers).
    You can be sure that your custom writing order will be accomplished by one of our 400+ professional academic writers. They all pass a series of tests to prove their writing prowess and hold the reputation of being the most professional in the industry. Want to make sure writer’s skills match your needs? Get more details on how to choose the appropriate author.
  • How can I be sure your writing service is not a scam?

    We understand that a shade of mistrust has covered the paper writing industry, and we want to convince you of our loyalty. Apart from high-quality writing services, we offer:
    • The chances of students to boost writing skills in a quick and effective way.
    • The opportunity to manage studies and free time in an enjoyable manner.
    • The possibilities to improve overall academic performance.
    Our custom writing company has been working for more than 12 years and always puts quality and clients’ needs first. Our operations are legally documented, we are easily accessible online and offline,
  • Is it legal to use your professional writing service?

    Yes. Custom writing help is not prohibited by any university or college. It’s a 100% legal way of getting professional assistance with paper writing. Hiring writers from an essay writing company is in many ways similar to consulting a tutor – we help you solve the writing issues at hand.
  • How does your service work?

    Our custom writing service is a reliable solution on your academic journey that will always help you if your deadline is too tight. You fill in the order form with your basic requirements for a paper: your academic level, paper type and format, the number of pages and sources, discipline, and deadline. Then, you describe the specific details of the paper you need: add the topic, write or paste the instructions, and attach files to be used, if you have them. After that, an online customer support representative chooses the best writer that specializes in your discipline and assigns him or her to complete the paper according to your requirements. When the paper is ready, we check it for plagiarism and send it to you. If you want to change something, you can request a free revision.
See full FAQ

Take your studies to the next level with our experienced specialists

Live ChatWhatsApp