Consider the following schema:
Emp (Empcode, Name, Sex, Salary, Deptt)
A simple SQL query is executed as follows:
SELECT Deptt FROM EmpWHERE sex = 'M'GROUP by DeptHaving avg (Salary) > {select avg (Salary) from Emp}
The output will be
(A) Average salary of male employee is the average salary of the organization
(B) Average salary of male employee is less than the average salary of the organization
(C) Average salary of male employee is equal to the average salary of the organization
(D) Average salary of male employee is more than the average salary of the organization
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.