Home » 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)

iLab 3 of 4: The Week 5 iLab: Database Construction Using MySQL ( 50 points)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 OVERVIEWScenario/SummaryIn 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.DeliverablesSQL 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 SoftwareOmnymbus – MySQL in the edupe environment.  SQLZOO may be used to test the scripts.Access the software at https://devry.edupe.net:8300.Steps 1–8iLAB STEPSSTEP 1: Entity Relationship Diagram AnalysisBack 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 FileBack to TopTo 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:SET FOREIGN_KEY_CHECKS=0;DROP TABLE IF EXISTS STUDENT;DROP TABLE  IF EXISTS CAMPUS;DROP TABLE  IF EXISTS ROOM;DROP TABLE  IF EXISTS COURSE;DROP TABLE  IF EXISTS INSTRUCTOR;DROP TABLE  IF EXISTS APPROVED_INSTRUCTOR;DROP TABLE  IF EXISTS CLASS;DROP TABLE  IF EXISTS STUDENT_GRADE;SET FOREIGN_KEY_CHECKS=1;STEP 3: Add Tables, Set Primary Keys and Foreign KeysBack to TopAdd 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 FieldsBack to TopFor 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 ConstraintsBack to TopSet 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 TablesBack to TopWrite 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 ScriptBack to TopInclude 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 DropboxBack to TopWhen you are done, submit the following files to the Week 5: iLab Dropbox:LastName_Wk5.sql  A text file you created with NotepadLastName_Wk5_Output.txt A text file created by copy and paste from edupe.RubricBack to TopPoints 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).

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Live Chat+1 763 309 4299EmailWhatsApp

We Can Handle your Online Class from as low as$100 per week