ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 02 May 2017 My Price 8.00

Using the companydb database you generated in the last quiz

Hello! how are you? check the attachment and Let me know if you need anything. Thank you

 

 

1. [100 pts] Using the companydb database you generated in the last quiz (Quiz 5), write SQL
scripts in the MySQL environment for the following use cases (no screenshots needed):
a) [10 pts] Using the IN clause, retrieve only the social security numbers of all employees who
work on project numbers 61, 62, 63. b) [10 pts] Using the IN clause, retrieve the first name, last name and the social security
numbers of all employees who work on project numbers 61, 62, 63. c) [10 pts] Without using the IN clause, retrieve the first name, last name and the social
security numbers of all employees who work on project numbers 61, 62, 63. d) [10 pts] Using a join clause, retrieve all project names and their department names. e) [10 pts] Without using a join clause, retrieve all project names and their department names. f) [10 pts] Using a join clause, retrieve employees who have dependents. g) [10 pts] Retrieve all employees (first name, last name) and their dependent names. You
should also get those who do not have any dependents. Hint: Use left join or right join. h) [10 pts] Get the total number of projects in the company. i) [10 pts] For each employee, get the total number of hours worked in the company. j) [10 pts] For each employee, get the total number of hours worked more than 40 hours in
the company. Bonus Question [10 pts]
The CEO wants to get a report in which he can see employees with a column "Status" which should
include either low-paid, normal-paid or over-paid values. Low-paid is for employees who work under 40
hours. Normal-paid is for employees who worked only 40 regular hours. Over-paid is for employees who
worked more than 40 hours. Retrieve employee ssn, first name, last name and status (lower-paid,
normal-paid or over-paid) of all employees.

Attachments:

Answers

(11)
Status NEW Posted 02 May 2017 03:05 AM My Price 8.00

-----------

Not Rated(0)