Database construction using mysql

Assignment Help Business Management
Reference no: EM13669664

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)

Reference no: EM13669664

Questions Cloud

Consider the baggage check-in of a small airline : Consider the baggage check-in of a small airline
Two brands of erp software to the executive : Provide an overview of two brands of ERP software to the executive.
Key strengths by offering valid arguments : Identify two key strengths of the paper and substantiate your views on these key strengths by offering valid arguments.
Benefits of hyper-v : Benefits of Hyper-V
Database construction using mysql : Database Construction Using MySQL
Why did animal logic want a system : Why did Animal Logic want a system that was easy to maintain? How did this requirement contribute to the company's ability to meet its goals?
Combinatorics permutations : 2 discrete math questions (combinatorics/permutations?
Analyze the cultural perspectives of doing business : Analyze the cultural perspectives of doing business in another country
Cheeseman discussed the concept of a bailmet : Cheeseman discussed the concept of a bailment

Reviews

Write a Review

Business Management Questions & Answers

  Show the performance management and employee services

How would you improve this person's job through rewards or incentives and make sure to include the Job Characteristics Model and Scientific Management in your response.

  What does proactive planning mean

What does proactive planning mean and when do you need a proactive crisis management plan?

  Theory x and theory y management styles

Explain each theory and prepare a chart that shows the pros and cons of each management style.

  Where can you discovery the data that you need

Where can you discovery the data that you need? How will you improvement access to the data? What is your Plan B if you encounter trouble obtaining access to this data?

  Linear programing problem

The linear programming problem whose output follows is used to determine how many bottles of fire red nail polish, bright red nail polish

  Show tacit and explicit knowledge

Provide three examples of tacit knowledge; provide three examples of explicit knowledge. Discuss how you might use this knowledge.

  Quality of work life with organization development

Employee Involvement and Quality of Work Life with Organization Development - Prepare a change program in a company, how would you create readiness for change?

  Explain how they can be related to the context of scenario

explaining some of the marketing concepts found in this week’s readings and explain how they can be related to the context of the scenario. Comprise citations and references where appropriate?

  What are the characteristics of a self-organizing system

What are the characteristics of a self-organizing system? How can self-organize principles be utilized to interface with a marketplace? What are the benefits of doing so?

  American recovery and reinvestment act of 2009identify a

american recovery and reinvestment act of 2009identify a clearer definition of risk and cost of capital for levered

  Examine considerations in employment policies

Examine considerations in employment policies, such as sexism, racism and social status as it relates to international trade and the global market.

  Corporation in reference to current global affairs

As a US heavy and outsized air cargo carrier, what are the three most important challenges facing this corporation in reference to current global affairs.

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