Microsoft Word - MIS602-Assign2-v.1.0.docx MIS602 Assign 3 Page 1 of 5 ASSESSMENT BRIEF Subject Code and Title MIS602 Data Modelling & Database Design Assessment Two – Database programming evaluation...

1 answer below »
This assessment is based on writing SQL queries. I have attached a PDF file consisting of details and 24 tasks that should be done. Also, you should write a summary that is based on experience while doing the assessment around 1000 words. I have also attached 2 sample documents. Please don't forget to add screenshots as given in the SQL QUERY WRITING DOCUMENT for every task. No references required. I request you to please make this assessment foolproof


Microsoft Word - MIS602-Assign2-v.1.0.docx MIS602 Assign 3 Page 1 of 5 ASSESSMENT BRIEF Subject Code and Title MIS602 Data Modelling & Database Design Assessment Two – Database programming evaluation practical Individual/Group Individual Length See below for details Learning Outcomes b, c Submission Thursday 11:59 PM AEST/AEDT of Module 4.1 (week 7) Sunday 11:59 PM AEST/AEDT of Module 4.1 (week 7) Weighting 35% Total Marks 35 Marks Context: The MIS602 Data Modelling & Database Design subject is designed for you to progressively add to your understanding of data and database management and its relevance with in business context. It also introduces you to some of the key features of database management system and designing database systems that will feature in later modules of this topic. In order for you to do well in this subject, it is imperative that you undertake all of the learning activities in the modules. The learning activities are presented as a way of scaffolding your learning so that you can attempt the building blocks of the assessments and be in a safe environment to fail and to learn from them. Therefore, doing your learning activities and seeking feedback from them from peers and from the learning facilitator is the single best way of preparing for doing well in this assessment. Instructions: You need to create the database tables as per below entities and complete the tasks listed in this instruction. Entities: MIS602 Assign 3 Page 2 of 5 Task 1: Create three tables with relevant keys as suggested in the above diagram Task 2: Insert record of 10 employees in the employee table Task 3: Insert record of 5 departments in the department table Task 4: Insert record of 5 salary levels in the salary table Task 5: Write a query to display the information about the employees in the employee table Task 6: Write a query to display the name of all the employees Task 7: Write a query to display the name of all the employees and their jobname. Task 8: Write a query in SQL to display the unique jobname for all the employees Task 9: Write a query to increase the salary for all the employees by 12%. Display the empname, jobname and salary after the increment Task 10: Write a query to display the employee names with minimum and maximum salary. Task 11: Write a query to display the employee id, employee name, jobname of all the employees whose salary is greater than 90,000 P.A. MIS602 Assign 3 Page 3 of 5 Task 12: write a query to display the all the details of all the employees whose jobname is Manager. (Hint: While entering the records for employee, make sure to add manager as jobname for a few employees.) Task 13: Write a query to display the all the details of the employee whose name is Robert. (Hint: While entering the records for employee, make sure to add Robert as empname for at least one employee.) Task 14: Write a query to display all the details of the employee who work as a manager and have salary greater than 95000 P.A. Task 15: Write a query to display employeeid, employee name, jobname and date of joining of all the employees who joined after year 2001. Task 16: Write a query to display the list of all the employees whose annual salary is within the range 55000 and 95000.( Hint: make sure to add the salary in this range while entering records in the employee table) Task 17: Write a query to display the list of all the employees in the descending order of their salaries. Task 18: Write a query to count the number of employees in the employee table. Task 19: Insert a new record in the employee table and add ANALYST as their jobname. The other fields can be added as per your choice Task 20: Insert a new record in the employee table with the following data fields employee_id= 1011 empname= Janet jobname= PROGRAMMER managerid= 5095 dateofhire= 12-10-2014 salary= 90000 department_id=2011 Task 21: Write a query to delete the record of the employee whose name is ‘Flynn’. (Hint: Make sure to add a record with employee name ‘Flynn’ in the beginning. Task 22: Write a query to update the salary by 15% of the employee whose employee name is ROBERT. Task 23: Write a query to find the number of staff working in each department and the sum of their salaries. MIS602 Assign 3 Page 4 of 5 Task 24: Write a query to find all employees with the string ‘Avenue’ in their address When you are finished this, prepare a document with all SQL commands used for each task and summarise your experience. On the morning following submission, the learning facilitator will allocate you another student’s document to assess. It is then your turn to assess another student’s work. You will have three days to assess the other student’s work and to upload your response to Blackboard. In no more than 500 words, provide a critique of that student’s work to them. You can choose whether to identify yourself but you should provide constructive feedback, balancing good points and points where the student can improve. You should provide feedback to the other student on their usage of commands and summary document. You are free to use whatever framework you like and the following should be minimum inclusions: • Comment on the overall usage of SQL statements and commands used • Provide constructive criticism on how the other student can improve their understanding of SQL statements • Provide some useful readings the other student may peruse that helps them develop their understanding of SQL statements Submission Instructions: Your spreadsheets and summary should be submitted by Thursday at midnight (Sydney time) of week 7. Do not include any identifying information on your submission (i.e. not your student number, name or anything else that might identify you). This is important because the peer review is to be done anonymously. Non-submission or lateness will be treated in accordance with the late assessment policy of the university. Please note that late submissions mean that another student will effectively have less time to do their peer assessment of your work. MIS602 Assign 3 Page 5 of 5 Learning Rubric: Assessment Three Assessment Attributes Fail (Unacceptable) 0-49% Pass (Functional) 50-64% Credit (Proficient) 65-74% Distinction (Advanced) 75 -84% High Distinction (Exceptional) 85-100% Understanding of the SQL commands 30% Demonstrates limited understanding of SQL commands Fair understanding of SQL commands demonstrated. May neglect to provide resources or that these are cursorily provided without reference to specific areas in the source. Good understanding of SQL commands demonstrated. May provide a limited number of sources the peer can use to develop their technique from. Very good understanding of SQL commands demonstrated. Makes recommendations to other external sources the peer can access to develop their understanding. Outstanding understanding of SQL commands demonstrated through recommendation of other sources with specific references to components of it that the peer will benefit from. Completion of SQL Statements for all Tasks 40% Less than 50% Tasks are completed 50-64% Tasks completed 65-74% Tasks completed 75-84% Tasks completed 85-100% Tasks completed Effective communication 30% Difficult to understand for audience, no logical/clear structure, poor flow of ideas, argument lacks supporting evidence. Audience cannot follow the line of reasoning. Information, arguments and evidence are presented in a way that is not always clear and logical. Line of reasoning is often difficult to follow. Information, arguments and evidence are well presented, mostly clear flow of ideas and arguments. Line of reasoning is easy to follow. Information, arguments and evidence are very well presented; the presentation is logical, clear and well supported by evidence. Demonstrates cultural sensitivity. Expertly presented; the presentation is logical, persuasive, and well supported by evidence, demonstrating a clear flow of ideas and arguments. Engages and sustains audience’s interest in the topic, demonstrates high levels of cultural sensitivity. Reference: Tables used in this assessment have been adapted from www.3resource.com Task 1: Create three tables with relevant keys as suggested in the above diagram CREATE TABLE `employee` ( `employee_id` int (11) NOT NULL, `Empname` varchar (25) NOT NULL, `Mangerid` int(11) NOT NULL, `Dateofhire` date NOT NULL, `jobname` varchar(15) NOT NULL, `Salary` decimal(10,0) NOT NULL, `department_id` int(11) NOT NULL, `DOB` date NOT NULL, `address` varchar(30) NOT NULL ) ALTER TABLE `employee` ADD FOREIGN KEY (`department_id`) REFERENCES `department`(`department_id`) CREATE TABLE `department` ( `department_id` int(11) NOT NULL, `Deptname` varchar(30) NOT NULL, `deptLocation` varchar(20) NOT NULL, `deptFloor` varchar(20) NOT NULL ) CREATE TABLE `vandana`.`salary` ( `salary_level` INT NOT NULL AUTO_INCREMENT , `salarymin` INT NOT NULL , `salarymax` INT NOT NULL , PRIMARY KEY (`salary_level`)) Task 2: Insert record of 10 employees in the employee table INSERT INTO `employee` (`employee_id`, `Empname`, `Mangerid`, `Dateofhire`, `jobname`, `Salary`, `department_id`, `DOB`, `address`) VALUES (1, 'abc', 111, '2020-03-08', 'teacher', '1000', 104, '2020-03-01', '3/76 abc'), (2, 'vgu', 67, '2020-03-29', 'teacher', '6789', 103, '2020-03-01', '78/ffyu'), (3, 'fhh', 90, '2019-10-21', ‘student’, '78652', 104, '2020-03-14', 'gyfqu89'), (4, 'safdh', 56, '2020-02-11', 'student', '6778', 101, '2019-10-16', 'oir90'), (5, 'fv', 67, '2019-11-12', 'jisfgjo', '8890', 104, '2020-03-17', '78hgjkgs'), (6, 'fud', 678, '2020-02-05', 'hufsg', '899', 103, '2019-10-29', 'gyfqu89whtr'), (7, 'whtrsk', 677, '2019-12-17', 'tey', '5522', 102, '2019-08-06', '6ury'), (8, 'hvj', 64, '2020-01-06', 'fsgjk', '8980'
Answered Same DayApr 06, 2021MIS602Torrens University Australia

Answer To: Microsoft Word - MIS602-Assign2-v.1.0.docx MIS602 Assign 3 Page 1 of 5 ASSESSMENT BRIEF Subject Code...

Neha answered on Apr 08 2021
133 Votes
53531/53531.sql
create table employee(
employee_id int primary key,
EmpName varchar(25),
ManagerId int,
DateOfHire Date,
JobName varchar(25),
Salary decimal(10,2),
Department_Id int,
DOB date,
address varchar(30),
salary_level int,
foreign key (salary_level) references salary (salary_level),
foreign key (Department_Id) references Department (Department_Id)
);
Create table Department(
Department_Id int primary key,
DeptName va
rchar(30),
deptLocation varchar(20),
deptFloor varchar(20)
);
Create table salary(
salary_level int primary key,
salaryMin int,
salaryMax int
);
insert into salary(salary_level,salaryMin,salaryMax)
values(101,90000,100000),
(102,80000,850011),
(103,40000,45000),
(104,50000,55000),
(105,55000,80000);
insert into Department(Department_Id,DeptName,deptLocation,deptFloor)
values(2010,'Manager','Australia','Second'),
(2011,'Coder','Australia','First'),
(2012,'Analyst','Australia','Third'),
(2013,'Sales','Australia','Fourth'),
(2014,'Operations','Australia','Fifth');
Insert into employee(employee_id,EmpName,ManagerId,DateOfHire,JobName,Salary,Department_Id,DOB,address,salary_level)
values(901,'James',5000,'2020-09-18','Manager',100000,2010,'1997-10-01','Australia',101),
(902,'Joy',5001,'2001-09-18','Manager',55000,2010,'1999-10-01','Australia',105),
(903,'Robert',5009,'2001-01-10','Analyst',91000,2012,'1998-10-01','Australia',101),
(904,'Flynn',5002,'2011-08-01','Manager',94000,2010,'1996-10-01','Australia',101),
(905,'James',5003,'2019-07-01','Analyst',45000,2012,'1996-10-01','Australia',103),
(906,'Flynn',5004,'2011-04-03','Programmer',96000,2011,'1994-10-01','Avenue',101),
(907,'Parag',5005,'2010-03-03','Programmer',97000,2011,'1990-10-01','Australia',101),
(908,'Harry',5006,'2002-01-18','Saler',93000,2013,'2000-10-01','Avenue',101),
(909,'Monica',5007,'2003-12-10','Operations',99000,2014,'1999-10-01','Australia',101),
(9010,'Rosy',5008,'2005-11-28','Manager',100000,2010,'1996-10-01','Australia',101);
Select * from employee;
Select EmpName from employee;
Select EmpName, JobName from employee;
Select distinct(JobName) from employee;
Update employee
set salary = salary + (salary * 0.12);
Select EmpName, JobName, salary+(salary * 0.12) As UpdatedSalary from employee;
Select EmpName, salaryMin, salaryMax from employee
inner join salary on salary.salary_level = employee.salary_level;
Select employee_id, EmpName, JobName from employee where salary > 90000;
Select * from employee where JobName like 'Manager';
Select * from employee where EmpName like 'Robert';
Select * from employee where JobName like 'Manager' and salary > 95000;
Select employee_id, EmpName, JobName, DateOfHire from employee where year(DateOfHire) > 2001;
Select * from employee where salary between 55000 and 95000;
Select * from employee order by salary desc;
Select count(employee_id) AS NumberOfEmployees from employee;
Insert into employee(employee_id,EmpName,ManagerId,DateOfHire,JobName,Salary,Department_Id,DOB,address,salary_level)
values(9011,'Shally',5010,'2020-09-18','Analyst',41000,2010,'1987-10-01','Australia',103);
select * from employee where employee_id = 9011;
Insert into employee(employee_id,EmpName,ManagerId,DateOfHire,JobName,Salary,Department_Id,DOB,address,salary_level)
values(1011,'Janet',5095,'2014-10-12','Programmer',90000,2011,'1987-10-01','Australia',101);
select * from employee where employee_id = 1011;
Delete from employee where EmpName like 'Flynn';
Select * from employee where EmpName like 'Flynn';
Update employee
set salary = (salary * 0.15) where EmpName like 'Robert';
Select * from employee where EmpName like 'Robert';
Select DeptName, sum(salary) from employee
inner join Department on Department.Department_Id = employee.Department_Id
group by employee.Department_Id;
Select * from employee where address like 'Avenue';
53531/query1.png
53531/query10.png
53531/query11.png
53531/query12.png
53531/query13.png
53531/query14.png
53531/query15.png
53531/query16.png
53531/query17.png
53531/query18.png
53531/query19.png
53531/query2.png
53531/query20.png
53531/query3.png
53531/query4.png
53531/query5.png
53531/query6.png
53531/query7.png
53531/query8.png
53531/query9.png
53531/Report.docx
Assessment 2 Summary
Data Modelling and Database Design
I have data modelling and database design as one of my core subjects in the University. This contains information about the creation,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here