Suppose there are 408 work hours per year, create a view to display employee hourly rate. EMP
Fantastic news! We've Found the answer you've been seeking!
Question:
Suppose there are 408 work hours per year, create a view to display employee hourly rate.
EMP TABLE ?
EMP_PROJ ?
PROJ ?
DEPT ?
Transcribed Image Text:
3 Suppose there are 408 work hours per year, create a view to display employee hourly rate. 4 Find out the total labor cost per employee, per project. 7 Assume each employee has a cap of 100 hours per project, develop a trigger to track overtime hours when employee exceed the cap for the project. 8 If the overtime pay is twice of regular hourly rate, modify the query from question 4 and add the factor of overtime. EMPNO 1000 Steven 1007 Diana 2002 FNAME 2060 Pat William 2000 Jennifer Fay 1760 Jonathan Taylor 1740 Ellen 1444 Peter LNAME Download CSV King 731 Fondren Houston, TX 638Voss Bellaire, TX 3321 Castle Spring, TX 561 Rice Houston, TX 890 Stone Houston, TX 450 Berry Bellaire, TX 980 Fire Oak Humble, TX Vargas 975 Dallas, Houston TX M Lorentz Abel Gietz ADDRESS Whalen SEX M F F LL. M TI M F LL SALARY 30000 Programmer 24000 15000 60000 65000 65000 28000 20000 POSITION Clerk Sales Representative Manager Manager Manager Clerk Sales Representative DEPTNO 60 20 80 20 60 80 60 80 EMPNO 1000 30 PROJNO 1000 2002 10 1444 1760 1760 50 2060 20 10 20 1740 50 40 HOURSPENT 32.5 7.5 40 20 Ln 5 10 15 12 PROJNO 10 20 30 40 50 PROJNAME Product X Product Y Computerization Productz Mobile Apps DEPTNUM 20 20 60 se 60 DEPTNO 20 60 80 DEPTNAME Marketing IT Sales MGR 1760 1740 2060 3 Suppose there are 408 work hours per year, create a view to display employee hourly rate. 4 Find out the total labor cost per employee, per project. 7 Assume each employee has a cap of 100 hours per project, develop a trigger to track overtime hours when employee exceed the cap for the project. 8 If the overtime pay is twice of regular hourly rate, modify the query from question 4 and add the factor of overtime. EMPNO 1000 Steven 1007 Diana 2002 FNAME 2060 Pat William 2000 Jennifer Fay 1760 Jonathan Taylor 1740 Ellen 1444 Peter LNAME Download CSV King 731 Fondren Houston, TX 638Voss Bellaire, TX 3321 Castle Spring, TX 561 Rice Houston, TX 890 Stone Houston, TX 450 Berry Bellaire, TX 980 Fire Oak Humble, TX Vargas 975 Dallas, Houston TX M Lorentz Abel Gietz ADDRESS Whalen SEX M F F LL. M TI M F LL SALARY 30000 Programmer 24000 15000 60000 65000 65000 28000 20000 POSITION Clerk Sales Representative Manager Manager Manager Clerk Sales Representative DEPTNO 60 20 80 20 60 80 60 80 EMPNO 1000 30 PROJNO 1000 2002 10 1444 1760 1760 50 2060 20 10 20 1740 50 40 HOURSPENT 32.5 7.5 40 20 Ln 5 10 15 12 PROJNO 10 20 30 40 50 PROJNAME Product X Product Y Computerization Productz Mobile Apps DEPTNUM 20 20 60 se 60 DEPTNO 20 60 80 DEPTNAME Marketing IT Sales MGR 1760 1740 2060
Expert Answer:
Answer rating: 100% (QA)
CREATE TABLE DEPARTMENT Dname varchar25 not null Dnumber int not null Mgrssn char9 not null Mgrstartdate date primary key dnumber UNIQUE dname CREATE ... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-111182591
7th edition
Authors: Philip J. Pratt, Joseph J. Adamski
Posted Date:
Students also viewed these programming questions
-
Suppose that in an electric display sign there are three light bulbs in the first row and four light bulbs in the second row. Let X denote the number of bulbs in the first row that will be burned out...
-
Create a view consisting of the Employee and Department tables without the address, DOB, and sex attributes.
-
Suppose that work hours in New Zombie are 200 In year 1 and productivity is $8 per hour worked. What is New Zombies real GDP? If work hours increase to 210 in year 2 and productivity rises to $10 per...
-
Find the struggles faced by business (printed t-shirts) with suppliers? Explain what would be the communication plan for each stakeholder and how you'll implement the decision you have taken?
-
At December 31, 20X8, Delaware Valley Nissan has an accounts receivable balance of $101,000. Allowance for Doubtful Accounts has a credit balance of $2,000 before the year-end adjustment. Service...
-
(a) Compute the voltage at 25C of an electrochemical cell consisting of pure lead immersed in a 5 10-2 M solution of Pb2+ ions and pure tin in a 0.25 M solution of Sn2+ ions. (b) Write the...
-
Plaintiffs purchased stock warrants (rights to purchase) for blocks of Osborne Computer Corp., the manufacturer of the first mass-market portable personal computer. Because of inability to produce a...
-
The first audit of the books of Bruce Gingrich Company was made for the year ended December 31, 2015. In examining the books, the auditor found that certain items had been overlooked or incorrectly...
-
A polar exploration team based near the south pole is faced with an emergency in which a very important housing and supplies module must be lifted by a special 1 crane, swung across a deep glacial...
-
Suppose 40% of recent college graduates plan on pursuing a graduate degree. Fifteen recent college graduates are randomly selected. a. What is the probability that no more than four of the college...
-
A customer uses a store credit card to purchase a boat for $10,500. The store credit card offers an annual interest rate, compounded continuously, of 18.99% with no payments due for the first two...
-
Many organisations do not provide an adequate induction programme for new employees. Comment critically on the benefi ts to be gained from implementing a good induction programme, and outline what...
-
Describe three different approaches to performance appraisal and comment critically on the benefits to be gained from these systems.
-
Explain the process of job evaluation and comment on how a points rating job evaluation scheme can contribute to perceptions of fairness from the point of view of employees.
-
Performance appraisals are intended to motivate employees towards greater productivity and improve communication/relations between managers and their team members. Explain why performance appraisals...
-
I have to implement a recruitment and promotion policy that attracts a broader group of people, including senior women. But how can the company engage its white male employee majority, who could feel...
-
Part A A 4.00 g bullet is fired horizontally into a 1.20 kg wooden block resting on a horizontal surface. The coefficient of kinetic friction between block and surface is 0.200. The bullet remains...
-
Consider the activities undertaken by a medical clinic in your area. Required 1. Do you consider a job order cost accounting system appropriate for the clinic? 2. Identify as many factors as possible...
-
What is an integrity constraint? When does a database have integrity?
-
When users update and retrieve data, what tasks does a DBMS perform that are hidden from the users?
-
Create a view named OrdTot. It consists of the order number and order total for each order currently on file. (The order total is the sum of the number ordered multiplied by the quoted price on each...
-
A professional baseball team set its sights on winning the World Series. The team owner wanted to win big and win fast. Consequently, the team sank all of its resources into trading for the best...
-
Immediately following World War II, the quality of products produced by Japanese companies was not good enough to compete in the international marketplace. The only advantage Japanese companies had...
-
The Office of Technology Assessment (OTA) reports that only 11 to 15 percent of all machine tools in the U.S. are automated; the majority of those automated are found in large companies. A Census...
Study smarter with the SolutionInn App