Loading

[NEW SOLN] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE

[SOLVED] MIS561 LAB 2 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, Entity –Relational Diagram (ERD), establish connection to your local MySQL Server, create physical database and insert data to the tables.

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: 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.

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: Deliverables
Your assignment will be graded based on the following.
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
[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: 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:

NNAttribute NameColumn nameData Type
1Employee number(PK)EMPNO NUMBER(4)
2Employee first nameEFNAMEVARCHAR2(10)
3Employee last nameELNAMEVARCHAR2(20)
4Job category(FK) JOBCATEGORYVARCHAR2(4)
5ManagerMGRNUMBER (4)
6Hire dateHIREDATEDATE
7SalarySALNUMBER (7.2)
8CommissionCOMMNUMBER (7.2)
9Departmentnumber(FK) DEPTNONUMBER(2)
10Department nameDEPTNAMEVARCHAR2(14)
11LocationLOCVARCHAR2(13)
12Job titleJOBTITLEVARCHAR2(20)
13Job descriptionJOBDESCVARCHAR2(20)

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: 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.”

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: STEP 2: Create SCHEMA and database tables in MySQL Workbench
2.a Create SCHEMA

  1. Launch MySQL Workbench;
  2. Click File and choose ‘New Model’;
  3. Add Diagram:
    Name: new schema name;
  4. Press ‘Enter’ and new SCHEMA will be added;

2.b Create tables

  1. In Model overview (top part of the screen) Click ‘Add Diagram’; Navigation pane shows new schema in Catalog Tree;
  2. Place a new table on the free part of screen;
  3. Fill:
    Table Name:
    Column Name, Datatype; PK; NN; UQ;BIN; UN; ZF;AI; Default;
    Press ‘Enter’
  4. Continue to add all tables;

2.c Foreign key creation

  1. Click on the bottom of the Form ‘Foreign key’ to establish the reference to parent table;
  2. Choose the Reference table and Reference column;
  3. Choose Foreign key options On Update and On Delete; Enter.

2.d Save database

  1. Choose ‘File’ on the Toolbar and Save Model as on your folder.
    Established database are visible on Home page.

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: STEP 3: Create and configure a new connection to the MySQL Server
Part 1 Create a new connection to the MySQL Server

  1. Launch to MySQL Workbench Home page;
  2. 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.
  3. 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

  1. Click on ‘Local Instance MySQL’ and enter password;
  2. Local Instance MySQL screen appears;
  3. Click MySQL Workbench Home, click database to be connected;
  4. EER Diagram screen appears;
  5. Choose Database on Toolbar and ‘Forward Engineering’ on scroll menu;
  6. Forward Engineer to Database screen appears
    Set parameters for Connecting to a DBMS:
    Stored Connection: Select from saved connection settings; Click ‘Next’;
  7. Set Options for Database to be Created appears
    Select DROP objects before each CREATE object;
    Leave selected Include model attached script; Click ‘Next’;
  8. Select Objects to Forward Engineer screen appears, enter password again;
    Select Export MySQL Table Objects and click ‘Next’;
  9. Review the SQL script to be Executed screen appears for your review and saving to file or copy to Clipboard; Click ‘Next’;
  10. Forward Engineering Progress screen appears, enter password again;
  11. Forward Engineering Progress shows the executed tasks.
  12. Click ‘Close’.

Please add Management, INSTANCE and PERFORMANCE screenshots for the created database to lab Report.

[SOLVED] MIS561 LAB 2 WORK WITH DICTIONARY AND CREATE RELATIONAL DATABASE: STEP 4: Insert data to tables using MySQL Workbench

  1. Copy INSERT statements for the given tables into the notepad;
  2. Launch to MySQL Workbench Home page;
  3. Choose created database instance; enter password;
  4. New screen appears with the Connection name;
  5. Choose in Navigator your schema’s name;
  6. Copy script from Notepad to screen ‘Query 1’;
  7. Highlight executable rows, choose ‘Query’ on the Toolbar and Execute (All or Selection);
  8. Output will display the results of the execution.

Please select counters and rows in database tables and add screenshots to lab Report.

Support