Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the following database to answer all parts of this question ( show only the Outputs ). Table: EMP Primary Key: E_NO E_NO E_NAME E_RATE

Use the following database to answer all parts of this question (show only the Outputs).

Table: EMP Primary Key: E_NO
E_NOE_NAMEE_RATEE_DEPT
1A$400.00
2B$200.001
3C$150.002
4D$150.003
5E$120.001
6F$100.001
7G$100.002
8H$50.002
9I$50.003
10J$50.003
11K$150.003

Table: PART Primary Key: P_NO
P_NOP_NAMEP_CITY
1P1NY
2P2NY
3P3LA
4P4SF
5P5LA
6P6NY

Table: PROJECT Primary Key: PR_NO
PR_NOPR_MGRPR_DEPTPR_LOC
121NY
232LA
321NY

Table: SUPPLIER Primary Key: S_NO
S_NOS_NAMES_LOC
1S1NY
2S2NY
3S3LA

Table: SUPPLY
Primary Key: P_NO + PR_NO + S_NO
Foreign Key: P_NO references PART Foreign Key: PR_NO references PROJECT Foreign Key: S_NO references SUPPLIER
P_NOPR_NOS_NOQTY
111111
112112
113113
121121
122122
123123
131131
132132
133133
211211
311311
411411
511511
611611

Table: WORK
Primary Key: ENO + PRNO
Foreign Key: E_NO references EMP Foreign Key: PRNO references PROJECT
E_NOPR_NOHRS
2110
3220
5120
5220
5320
6110
6210

Questions:
  1. Compute the amount to be billed to each project as “Amount”. The amount for each project is computed as the sum of the amount billed to the project by all employees working on the project. The amount billed by an employee to a project is obtained as the product the hours (HRS) that the employee devotes to the project and the billing rate (ERATE) for the employee (show only the output of the query).

  2. Compute the total revenue generated by each department as “Revenue”. The Revenue for each department is computed as the sum of the amount billed to all projects controlled by the department. (Note that the PRDEPT for a project represents the controlling department for the project) (show only the output of the query).

  3. List the names of employees who only work in projects located (PRLOC) in New York (NY) (show only the output of the query).

  4. List the name of employees who work on all projects (show only the output of the query).

List the project numbers (PRNO) for projects that have only received parts that are stored in (PCITY) the same city as the project (show only the output of the query).

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

Q1 Compute the amount to be billed to each project as Amount SELECT PRNO SUMHRS ERATE AS Amount FROM ... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

=+b) What might you consider doing next?

Answered: 1 week ago