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)
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)
Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter7: Knowledge Management And Specialized Information Systems
Section: Chapter Questions
Problem 18SAT
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2ec814c7-90f3-4435-9bb8-fcbab3f733ac%2F98c1024c-c3ba-4e28-ac24-c1d1756addf0%2Fgj37wnl_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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
-+](https://content.bartleby.com/qna-images/question/2ec814c7-90f3-4435-9bb8-fcbab3f733ac/a7e2d8fa-440e-47b0-9f82-d1bcbb850910/0ugl1qkq_thumbnail.png)
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
Knowledge Booster
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.Recommended textbooks for you
![Fundamentals of Information Systems](https://www.bartleby.com/isbn_cover_images/9781305082168/9781305082168_smallCoverImage.gif)
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
![Information Technology Project Management](https://www.bartleby.com/isbn_cover_images/9781337101356/9781337101356_smallCoverImage.jpg)
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![Fundamentals of Information Systems](https://www.bartleby.com/isbn_cover_images/9781305082168/9781305082168_smallCoverImage.gif)
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
![Information Technology Project Management](https://www.bartleby.com/isbn_cover_images/9781337101356/9781337101356_smallCoverImage.jpg)
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![Principles of Information Systems (MindTap Course…](https://www.bartleby.com/isbn_cover_images/9781285867168/9781285867168_smallCoverImage.gif)
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning