Cash-back offer from May 2nd to 7th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 20.00

Week 5 iLab | Complete Solution | Rated A+

Question posted by
Online Tutor Profile
request

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.sql containing 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.

Rubric
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
oDates should have a date data type.
oSurrogate keys should be autonumbered.
oNumeric data should have a numeric data type.
oCharacter data should have a character data type.
•10 Points: Relationships created as shown on the provided E-R model
oRelationships enabled for referential integrity
oRelationships 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

oStudent name cannot be set to null.
oCourse credit hours are restricted to between one and four.
oCourse name must be unique and cannot be set to null.
oInstructor last name and first name cannot be set to null.
oGrade is restricted to be one of these values: A, B, C, D, F, I, W, or E (enrolled).
 

Available Answer
$ 20.00

[Solved] Week 5 iLab | Complete Solution | Rated A+

  • This Solution has been Purchased 3 time
  • Submitted On 09 Feb, 2015 10:05:15
Answer posted by
Online Tutor Profile
solution

This Tutorial is rated A+ p...

Buy now to view the complete solution
Other Similar Questions
User Profile
AceTu...

MIS 528Week 5 iLab: Database Construction Using MySQL | Complete Solution

ET FOREIGN_KEY_CHECKS=0; 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 AP...

User Profile
AceTu...

CIS 115 Week 5 iLab Fireworks Stand Checkout | Complete Solution

Copy/paste your C# code here. using System; using System.Collections; namespace Purchase_Fireworks { class Program { static void Main(string[] args) { ArrayList PurchasedItems = new Array...
User Profile
Homew...

ECET210 Week 5 iLab | Complete Solution

From loop1, we have

From loop2, we have

Writing in a matrix form

Where

After substitution, we get

Solving this 2x2 matrix, we get

...
User Profile
Quali...

COMP 230 Week 5 iLab report (VBScript Modular Lab Report)

COMP 230 Week 5 iLab report (VBScript Modular Lab Report)Copy your Mod1_PCTests.vbs program from NotePad++ and paste it into the space provided below. Any portion of the script that will not fit should be continued in the t...
User Profile
Acade...

iLab 3 of 4: The Week 5 iLab: Database Construction Using MySQL

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

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35