• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

ISRO | ISRO CS 2015 | Question 23

Consider the following schema:
Emp (Empcode, Name, Sex, Salary, Deptt)
A simple SQL query is executed as follows:
SELECT Deptt FROM Emp
WHERE sex = \'M\'
GROUP by Dept
Having 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

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments