Discussion :: SQL Basics
-
Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM employee WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
prints
Answer : Option D
Explanation :
This query counts the number of employees who gets more than the maximum salary.
Be The First To Comment