Question 1
Consider the table instructor shown in Table 1.
| id | name | salary |
|---|---|---|
| 6001 | Oliver | 45000 |
| 6002 | Jack | 30000 |
| 6003 | Oliver | 45000 |
| 6004 | Jack | 30000 |
| 6005 | Jacob | 70000 |
| 6006 | Tommy | 60000 |
| 6007 | Joseph | 65000 |
| 6008 | Jacob | 70000 |
Table 1: instructor
What will be the output of the following query ?
SELECT nameFROM instructor AS aWHERE( SELECT COUNT(*) FROM instructor b WHERE b.salary>a.salary)>2
EXCEPT ALL
SELECT DISTINCT(name)FROM instructor