Work with dictionary and create relational database

Assignment Help Basic Computer Science
Reference no: EM13927336

Lab 2: Work with Dictionary and Create Relational Database

iLAB OVERVIEW

Scenario and Summary
In this lab, you will prepare a Data Dictionary based on the list of elements. Also, your task will be determined the tables, their relationships, primary and foreign keys. Based on this analysis, you will create Database Schema, relational tables, Entity -Relational Diagram (ERD), establish connection to your local MySQL Server, create physical database and insert data to the tables.

MySQL provides two primary types of file management: dictionary-managed files and MySQL Workbench-managed files. As part of this iLab, you will need to supply some information as to how you would use both of these approaches, and you will have to discuss some of the advantages of each.

For Step 3, you need access to your database instance. If you have any difficulties connecting your database instance, let's take error messages, screen shots, descriptions of the situation to the graded threads and work as a team to resolve issues.
Now you are ready to proceed.

Deliverables
Your assignment will be graded based on the following.
Assignment Step Description Points
Step 1 Create Data Dictionary for provided elements (Word document) 15
Step 2 Create SCHEMA and database tables in MySQL Workbench 15
Step 3 Establish connection to the MySQL Server (screenshots) 15
Step 4 Insert data to tables using MySQL Workbench 15
Total Lab Points 60

• For Steps 1, 2, 3 and 4 create a single Word document and include the answers or solutions to all problems. Be sure to label your document and include your name and course number in the heading. Save your document as "yourname_Lab_2.docx."
Submit both "yourname_Lab_2.docx" to the Dropbox for this week.

iLAB STEPS
STEP 1: Create Data Dictionary for provided elements
As the DBA for your company, you have decided to install a new version of the MySQL database to replace the current database version being used. The old database has become a constant headache and seems to be causing an overload on the disk drive's I/O channels. Further analysis has also shown that two primary large tables are the main points of access. The new tables will be DEPT, EMPLOYEE, and BONUS.
• Describe how you plan to compile the Data Dictionary and decide on the table's structure with the new MySQL database.
Given list of elements:

NN Attribute Name Column name Data Type
1 Employee number (PK) EMPNO NUMBER(4)
2 Employee first name EFNAME VARCHAR2(10)
3 Employee last name ELNAME VARCHAR2(20)
4 Job category (FK) JOBCATEGORY VARCHAR2(4)
5 Manager MGR NUMBER (4)
6 Hire date HIREDATE DATE
7 Salary SAL NUMBER (7.2)
8 Commission COMM NUMBER (7.2)
9 Department number(FK) DEPTNO NUMBER(2)
10 Department name DEPTNAME VARCHAR2(14)
11 Location LOC VARCHAR2(13)
12 Job title JOBTITLE VARCHAR2(20)
13 Job description JOBDESC VARCHAR2(20)
Compile Data Dictionary (in alphabetic order):
NN Attribute Name Column name Data Type Data element description Table name Primary key/ Foreign key indicator (P/F) Not NULL Default value
Department number DEPTNO NUMBER(2)
Place and save your answers in a Word document named "yourname_Lab_2.docx."

STEP 2: Create SCHEMA and database tables in MySQL Workbench
2.a Create SCHEMA
a) Launch MySQL Workbench;
b) Click File and choose ‘New Model';
c) Add Diagram:
Name: new schema name;
d) Press ‘Enter' and new SCHEMA will be added;
2.b Create tables
a) In Model overview (top part of the screen) Click ‘Add Diagram'; Navigation pane shows new schema in Catalog Tree;
b) Place a new table on the free part of screen;
c) Fill:
Table Name:
Column Name, Datatype; PK; NN; UQ;BIN; UN; ZF;AI; Default;
Press ‘Enter'
d) Continue to add all tables;
2.c Foreign key creation
a) Click on the bottom of the Form ‘Foreign key' to establish the reference to parent table;
b) Choose the Reference table and Reference column;
c) Choose Foreign key options On Update and On Delete; Enter.

2.d Save database
a) Choose ‘File' on the Toolbar and Save Model as on your folder.
Established database are visible on Home page.
STEP 3: Create and configure a new connection to the MySQL Server
Part 1 Create a new connection to the MySQL Server
a) Launch to MySQL Workbench Home page;
b) To add a connection, click the [+] icon to the right of the MySQL Connections title. This opens the Setup New Connection form:
Figure 3.1 Setup New Connection Form

Important note:
The Setup New Connection form features a Configure Server Management button (bottom left) that is required for the MySQL connection to perform tasks that requires shell access to the host. For example, starting/stopping the MySQL instance or editing the configuration file Fill out the connection details and optionally click Configure Server Management to execute the Server Management wizard. Click OK to save the connection.
Important

All connections opened by MySQL Workbench automatically set the client character set to utf8. Manually changing the client character set, such as using SET NAMES ..., may cause MySQL Workbench to not correctly display the characters.

c) New connections are added to the Home page as a tile, and multiple connections may be opened simultaneously in MySQL Workbench.
Part 2 Configure a New MySQL Connection
a) Click on ‘Local Instance MySQL' and enter password;
b) Local Instance MySQL screen appears;
c) Click MySQL Workbench Home, click database to be connected;
d) EER Diagram screen appears;
e) Choose Database on Toolbar and ‘Forward Engineering' on scroll menu;
f) Forward Engineer to Database screen appears
Set parameters for Connecting to a DBMS:
Stored Connection: Select from saved connection settings; Click ‘Next';
g) Set Options for Database to be Created appears
Select DROP objects before each CREATE object;
Leave selected Include model attached script; Click ‘Next';
h) Select Objects to Forward Engineer screen appears, enter password again;
Select Export MySQL Table Objects and click ‘Next';
i) Review the SQL script to be Executed screen appears for your review and saving to file or copy to Clipboard; Click ‘Next';
j) Forward Engineering Progress screen appears, enter password again;
k) Forward Engineering Progress shows the executed tasks.
l) Click ‘Close'.
Please add Management, INSTANCE and PERFORMANCE screenshots for the created database to lab Report.

STEP 4: Insert data to tables using MySQL Workbench
a) Copy INSERT statements for the given tables into the notepad;
b) Launch to MySQL Workbench Home page;
c) Choose created database instance; enter password;
d) New screen appears with the Connection name;
e) Choose in Navigator your schema's name;
f) Copy script from Notepad to screen ‘Query 1';
g) Highlight executable rows, choose ‘Query' on the Toolbar and Execute (All or Selection);
h) Output will display the results of the execution.
Please select counters and rows in database tables and add screenshots to lab Report.

Reference no: EM13927336

Questions Cloud

Describing the evolution of business : Create a 10- to 15-slide Microsoft® PowerPoint® presentation describing the evolution of business.
Binomial and hypergeometric distributions : Suppose a manager has 10 subordinates, 6 of whom are female, while the other 4 are male. The manager will randomly pick 3 of his subordinates to attend a conference in Hawaii.
Determine the sample mean and sample standard deviation : Determine the sample mean, sample standard deviation, and sample size
What is increase in probability of company generating losses : If the firm acquires the cars and finances them with debt as proposed, what is the increase in the probability of the company's generating losses during the coming year?
Work with dictionary and create relational database : In this lab, you will prepare a Data Dictionary based on the list of elements. Also, your task will be determined the tables, their relationships, primary and foreign keys. Based on this analysis, you will create Database Schema, relational tables..
What are the earnings per share at the given level : What is the level of EBIT at the indifference point between these two alternatives? What are the earnings per share at this level?
Micromana-ging or discouraging the new cio : How can you sort out what really needs to be done without appearing to be micromana-ging or discouraging the new CIO? Read "What would you do?" #5 on page 120 of the text. Put yourself in the CIO position. Write a 2 - 3 page paper formulating a ris..
Moral dilemma identify the competing rights : Describe the moral dilemma identify the competing rights and how these make it a moral dilemma.
Influence of health policies and future of health care : Based on the changing environment, as well as demographics in 21st Century America, there are many burgeoning issues and hurdles the U.S. Health Care System faces. As part of the preparation for your assignment, view the video titled "Health Care ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write and describe the order fulfillment process in your

list and explain the order fulfillment process in your own words. explain unintentional and intentional threats. what

  Physical security

As you've learned, physical security doesn't just mean securing systems. It also involves securing the premises, any boundaries, workstations, and other areas of a company. Without physical security, data could be tampered with or stolen, and value i..

  Write a method that accepts a stringbuilder object

Write a method that accepts a StringBuilder object as an argument and converts all occurrences of the lowercase letter ‘t' in the object to uppercase.

  Compare results search and identify any differences

There are several options of search engines, including Yahoo, Google, DogPile, and Maholo. Using the listed search engines above, search for something that interest you

  Briefly define each area of your web site plan

Using the scenario of the Adventure Travel Club found in the lecture, briefly define each area of your web site plan, Target Audience, Flowchart, and Storyboard.

  Perform the following hexadecimal computations

Perform the following hexadecimal computations (leave the result in hexadecimal).

  It systems do not operate alone in the modern enterprise

It is important to know the different interconnections each system has. IT systems do not operate alone in the modern enterprise, so securing them involves securing their interfaces with other systems as well.

  Show the design of a modulo 7 asynchronous counter

Using positive edge triggered flip flops, show the design of a modulo 7 asynchronous counter that counts: 7,6...1,7, etc. You may assume that your flip flops have asynchronous Set and Reset inputs available. (Hint: Connect Q to the clock input of the..

  Create a user manual that documents how to build the compute

Create a user manual that documents how to build the computer.

  Determining contents of the register a

The hexadecimal form of a 3-byte instruction for SIC/XE is 010030. The opcode in the instruction is LDA. Indicate the contents of the register A in decimal.

  The code be written by hand using a text editor

Demonstrate your ability to create a web site. Your web site should consist of at least 4 pages, a main page, an additional information page, a page containing form elements (such as a contact page), and one additional page of your choice.

  A computing platform is a combination of a computing device

A computing platform is a combination of a computing device, such as a specific laptop computer or PC, and a particular operating system. New advances in computer hardware and software are changing the nature of available computing platforms.

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