Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Give the single statement to assign the employee with ID 12 to the project(s) with revenue greater than $15,000. Each project should be assigned

image text in transcribed

1. Give the single statement to assign the employee with ID 12 to the project(s) with revenue greater than $15,000. Each project should be assigned an equal portion of 100% time. For example, if there are 4 such projects, the employee with ID 12 should be assigned 25% time for each project.

2. Give the statement(s) to delete all employees of the Accounting department

3. Harry Hardwares twin brother, Igor, has decided to join the company. Hell work for the same department and make the same salary as his brother. Pick an unused ID. Give the single statement to create this new employee. You never know when somebody else might be changing Harrys salary, department, or last name; therefore, your statement must derive these values from the database. In other words, you cannot look up Harrys last name and use the literal value in the creation statement for Igor.

4. You have created a new department named Shipping with code SHPNG. The new department is a subdepartment of ADMIN. To handle this new department, you have hired a new employee named Ed Fex with ID 20 to manage the department. Give the statement(s) to add this new information to the database. Make up any unspecified data yourself.

5. Give the statement(s) to remove the Administration department. Any responsibilities that the Administration department has (e.g., being a super department, owning projects) should be transferred to the department with code CNSLT. Dont peek at the data.

departments projects projectid code deptcode FKe name managerid FK subdeptof FK description startdate enddate revenue workson projectidFK employeeidFK assignedtime employees employeeid firstname lastname deptcode FK salary Figure 1.5: Schema for the Employees Database. departments projects projectid code deptcode FKe name managerid FK subdeptof FK description startdate enddate revenue workson projectidFK employeeidFK assignedtime employees employeeid firstname lastname deptcode FK salary Figure 1.5: Schema for the Employees Database

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions

Question

Describe the process and stages of ecological succession.

Answered: 1 week ago