Prepare a data dictionary

Assignment Help Database Management System
Reference no: EM13839316

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

 

Step 1

Create Data Dictionary for provided elements (Word document)

 

Step 2

Create SCHEMA and database tables in MySQL Workbench

 

Step 3

Establish connection to the MySQL Server (screenshots)

 

Step 4

Insert data to tables using MySQL Workbench

 

Total Lab Points

 

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

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

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 SetupNew Connection Form

1326_SetupNew Connection Form.jpg

Important  note:

TheSetup New Connectionform 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 Managementto 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.

a) 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 MySQLscreen 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: EM13839316

Questions Cloud

Measurement of two lengths in feet and inches : "create a form with textboxes to enter the measurement of two lengths in feet and inches as integer values and compute the total length in feet and inches. For example, the total length of 5 feet 8 inches and 4 feet 6 inches is 10 feet 2 inches; a..
Second card is even given that the first card is even : Dealt five cards sequentially numbered 1,2,3,4, and 5 from a shuffled deck. let E_i denote the event that the i^th card dealt is even numbered. That is, E_1 denotes the event that the first card drawn is even numbered. a. What is P(E_2|E_1), the prob..
What can be done to secure a wireless network : The commanding officer is having second thoughts on using the wireless network that was first considered. He is concerned about the security of a wireless network. Prepare a slide presentation on wireless networking and what can be done to secure a w..
How the government has impacted public policy : Choose an example of how the government has impacted public policy. For example: Social Security Act, the Affordable Care Act, the 18th Amendment (the Volstead Act), No Child Left Behind, the US PATRIOT Act, the 16th Amendment (income tax), the 19..
Prepare a data dictionary : 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..
If we reject the null hypothesis : If we reject the null hypothesis, H0: p=0  , what can we conclude about the population correlation coefficient? A. it is zero b. it could be zero
A randomly selected person is a runner : 1) The probability that a randomly selected person has high blood pressure (the event H) is P(H) = 0.4 and the probability that a randomly selected person is a runner (the event R) is P(R) = 0.5. The probability that a randomly selected person has hi..
Prevalence of hyperglycemia : A recent study reported that the prevalence of hyperlipidemia (defines as total cholesterol over 200) is 30 % in children 2 to 6 years old of age. If 12 children are analyzed. a) What is the probability that at least 3 are hyperlipidemia? b) What is ..
What if any normalization error is present in the table : What, if any normalization error is present in the table? a. None b. First Normal Form c. Second Normal Form d. Third Normal Form Describe or illustrate how you would correct the normalization error, if one is present.

Reviews

Write a Review

 

Database Management System Questions & Answers

  Synchronization between the database and the transaction log

A point of synchronization between the database and the transaction log is called a(n): An ACID transaction is one that is:

  Write names and e-mail addresses showing foreign key columns

Illustrate all the data in each of four tables. Don't show foreign key columns. Write down the names and e-mail addresses for all customers who have had stove repair which cost more than $50.

  Based on the schema write sql statements

Based on the schema write SQL statements and provide the equivalent relational algebra expressions - relational algebra expressions return and give the equivalent SQL statements.

  What do you think is the wisdom of maintaining 2 models

what do you think is the wisdom of maintaining 2 models? The W3C has a Document Object Model as a recommendation. Do you think browsers should implement this model? If not, propose a model which you think would be suitable.

  Database and programming design

Database and Programming Design

  You have been hired as the banks director of data security

a large bank has a headquarters location plus several branches in each city in a particular region of the country. as

  Explaining software measurement related to software metrics

Is software measurement equivalent to software metrics? What makes them different?

  What are the candidate keys of r

Suppose you have a relation schema about teaching classes that has the following attributes: Class, Instructor, Time and Room.

  Data-flow diagrams can be used to the physical system

Data-flow diagrams can be used to model both the physical and logical systems. Data models can be analyzed to identify possible inconsistencies that exist between two sets of diagrams or within a single DFD.

  Search for a record based on a particular field value

For each of the following queries, which of the listed index choices would you choose to speed up the query? If your database system does not consider index-only plans (i.e., data records are always retrieved even if enough information is available i..

  Prepare a use case diagram for the case study

Case Study based on an Interview contained in a separate document (Please see the details in page 221 of your text book). Carefully read this case study. You are required to answer the following questions based on the Case Study.

  Normalize the following relations to 3nf

Do you always have to use the third normal form? Why or why not? What can happen if you do not use the third normal form? Normalize the following relations to 3NF, using the set of functional dependencies listed:

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