Please write a view  to list staff’s names, salary, ages, and their supervisors’ names, salary, and ages for all staff whose supervisor’s age is younger than the staff’s age and their supervisor’s salary is higher than the staff’s salary. You should use Staff2 table. The output header needs to distinguish between staff and manger: (E_name, E_salary, E_age, M_name, M_salary, M_age)

Information Technology Project Management
9th Edition
ISBN:9781337101356
Author:Kathy Schwalbe
Publisher:Kathy Schwalbe
Chapter9: Project Resource Management
Section: Chapter Questions
Problem 5QQ
icon
Related questions
Question

Please write a view  to list staff’s names, salary, ages, and their supervisors’
names, salary, and ages for all staff whose supervisor’s age is younger than the staff’s age and their
supervisor’s salary is higher than the staff’s salary. You should use Staff2 table. The output header
needs to distinguish between staff and manger: (E_name, E_salary, E_age, M_name, M_salary, M_age)

| staffNo | fName | 1Name
| New |
| Super
Mary
David
ABC1
CC1
SA9
SG14
SG37
SG5
SL21
SL41
XY1
Engineer
User
Howe
Ford
Ann
Beech
| Susan | Brand
John
Julie
New
White
Lee
Tester
| position
Intern
DBA
Assistant
| Supervisor
| Assistant
| Manager
Manager
| Assistant
| Assistant
| sex
| M
M
F
M
F
| F
| M
F
M
| DOB
| salary
2000-01-01
| 9000.00
| 90000.00
| 1995-01-01
1970-02-19
B002
B005
9000.00 B007
B003
1960-11-10 | 12000.00 | B003
| 1958-03-24 18000.00
| 1940-06-03 | 24000.00 B003
1945-10-01 30000.00 B005
1965-06-13 9000.00 | B005
| 1990-01-01
8000.00 | B002
| branchNo | superno |
SL21
SG14
SG5
SG5
SG5
SL21
NULL
SL21
SL21
Transcribed Image Text:| staffNo | fName | 1Name | New | | Super Mary David ABC1 CC1 SA9 SG14 SG37 SG5 SL21 SL41 XY1 Engineer User Howe Ford Ann Beech | Susan | Brand John Julie New White Lee Tester | position Intern DBA Assistant | Supervisor | Assistant | Manager Manager | Assistant | Assistant | sex | M M F M F | F | M F M | DOB | salary 2000-01-01 | 9000.00 | 90000.00 | 1995-01-01 1970-02-19 B002 B005 9000.00 B007 B003 1960-11-10 | 12000.00 | B003 | 1958-03-24 18000.00 | 1940-06-03 | 24000.00 B003 1945-10-01 30000.00 B005 1965-06-13 9000.00 | B005 | 1990-01-01 8000.00 | B002 | branchNo | superno | SL21 SG14 SG5 SG5 SG5 SL21 NULL SL21 SL21
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

It has to be based on this table

| E_name
+---
+--·
| Susan Brand | 24000.00 | 83
E_salary | E_age | M_name
| M_salary | M_age
-+--
--+
John white | 30000.00 |
-+--
-+
---+
78 I
-+
Transcribed Image Text:| E_name +--- +--· | Susan Brand | 24000.00 | 83 E_salary | E_age | M_name | M_salary | M_age -+-- --+ John white | 30000.00 | -+-- -+ ---+ 78 I -+
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Information Technology Project Management
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning