Question: Staff 2 Table 9. (10 pts) Create a view vHW1_#_xxxx listing the lowest salary for each gender. You must use UNION operation and Staff 2

Staff 2 Table

9. (10 pts) Create a view vHW1_#_xxxx listing the lowest salary for each gender. You must use UNION operation and Staff 2 table. The output column name should be (gender, name, age, salary). The name should be combined fname and Iname, with a space in between. The output should be female first and then male. staffNo | fName | IName | position | sex | DOB | salary | branchNo | superno | ABC1 CCl SA9 SG14 SG37 SG5 SL21 SL41 XYL | New | Enginer | Intern IM | Super | User | DBA | M | Mary | Howe | Assistant IF | David | Ford | Supervisor | M Ann | Beech | Assistant | F | Susan | Brand | Manager | F | John | White | Manager IM | Julie | Lee | Assistant IF | New Tester | Assistant |M | 2000-01-01 | 9000.00 | B002 | 1995-01-01 | 90000.00 | B005 | 1970-02-19 | 9000.00 | B007 | 1958-03-24 | 18000.00 | B003 | 1960-11-10 | 12000.00 | B003 | 1940-06-03 | 24000.00 | B003 | 1945-10-01 | 30000.00 | B005 | 1965-06-13 | 9000.00 | B005 | 1990-01-01 | 8000.00 | B002 | SL21 | SG14 | SG5 | SG5 | SG5 | SL21 | NULL | SL21 | SL21
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
