>Activity Guidelines and Rubric
Understanding the information shown in tables and the outputs of certain commands are skills necessary for success in data analytics. In this assignment, you’ll practice identifying the parts of a database. You’ll also see some of the commands that can be used to show the information and update the tables. The tables below follow a relational data structure. Download the Module Two Activity Template from the section, retitle it to include your last name, place your answers in it, and submit it for grading. You’ll only answer the 0 questions found below and complete a visual inspection of the data tables and SQL code. This is not a coding exercise. The SQL statements shown here are similar to commands that can be used to generate the same outcomes to those shown in the tables. Employee Table 0
1 2 5000
Mary 3ExemptFull-Time 2 Full-Time 0000
Jones3Non-ExemptFull-Time90000 SQL Statement 1 CREATE TABLE Employee ( Employee_ID SMALLINT, First_Name VARCHAR(40), Last_Name VARCHAR(60), Department_ID SMALLINT, Classification VARCHAR(10), Status VARCHAR(10), Salary DECIMAL(7,2)); Branches Table SQL Statement 2 CREATE TABLE Branches ( Department_ID SMALLINT, Department_Name VARCHAR(50)); Questions Identify the Employee ID(s) that would be returned as a result of the following query.- • Select * from Employee where Classification <> ‘Exempt’;What is the result of the following query?- Select max(Salary) from Employee;What to Submit Submit your responses in the Module Two Activity Template. All of your answers should go in their respective locations in that document and then be submitted for grading and feedback. )
10 100% DAD 220 Module Two Activity Template
2
Overview
Directions
What to Submit
1
Employee_ID
First_Name
Last_Name
Department_ID
Classification
Status
Salary
10
John
Smith
Exempt
Full-Time
90000
101
Mary
Jones
Non-Exempt
Part-Time
3
102
Williams
80000
103
Gwen
Johnson
NULL
4
104
Michael
Department_ID
Department_Name
1
Accounting
2
Human Resources
3
Information Systems
4
Marketing
Module Two Activity Rubric
Criteria
Proficient (
100%
Not Evident (0%)
Value
Question 1
Answers question correctly
Does not attempt criterion, or answer is incorrect
Question 2Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 3Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 4Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 5Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 6Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 7Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 8Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 9Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Question 10Answers question correctlyDoes not attempt criterion, or answer is incorrect10
Total:
Replace the bracketed text in this template with your answers and any supporting screenshots. Then
submit it for the Module Two table and SQL identification activity. You’ll need to download this
template, save it as a unique file, and then submit it for grading. Rename this document to include your
last name and remove these instructions before submitting.
Using the tables and SQL statements from the prompt for Module Two Activity, answer the following
questions. Replace the bracketed text with your answers and any supporting screenshots.
1. How many records are shown in the Employee table?
[Insert your answer here.]
2. How many attributes are there in the Branches table?
[Insert your answer here.]
3. Which attribute could be a primary key for the Employee table?
[Insert your answer here.]
4. How many decimal places (maximum) can be stored in an employee’s salary field?
[Insert your answer here.]
5. How many decimal places (maximum) can a Department_ID have?
[Insert your answer here.]
6. What three rules do tables obey?
[Insert your answer here.]
7. Is the Employee table normalized? How do you know?
[Insert your answer here.]
8. What is the result of the following query?
• Select sum(Salary) from Employee where Department_ID=3;
[Insert your answer here.]
9. Identify the Employee ID(s) that would be returned as a result of the following query.
•
Select * from Employee where Classification ‘Exempt’;
[Insert your answer here.]
10. What is the result of the following query?
•
Select max(Salary) from Employee;
[Insert your answer here.]