3 3 votes Consider the following schema: $\textsf{Emp (Empcode, Name, Sex, Salary, Deptt)}$ A simple SQL query is executed as follows: SELECT Deptt FROM Emp GROUP by Dept Having avg (Salary) > {select avg (Salary) from Emp} The output will be Average salary of male employee is the average salary of the organization Average salary of male employee is less than the average salary of the organization Average salary of male employee is equal to the average salary of the organization Average salary of male employee is more than the average salary of the organization Databases isro2015 databases sql + – go_editor 5.0k views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply saxena0612 commented Dec 15, 2017 reply Follow flag select deptName from Employee where sex = 'Male' \\ $ \color{Red}{Line \ is \ missing \ in \ question}!$ group by deptName having avg (salary) > (select avg (salary) from Employee) 1 1 replyShare Hirak commented Apr 26, 2019 reply Follow flag I guess the question setter doesn't know English properly..! :) Isro SQL questions are more based on verbal than dbms.. PEACE 1 1 replyShare satyaAchar commented Feb 2, 2024 reply Follow flag @go_editor please correct this question.. 0 0 replyShare khankayab10 commented Feb 7 reply Follow flag i hate isro questions period 0 0 replyShare Please log in or register to add a comment.
7 7 votes Answer : D Average salary of male employee is more than the average salary of the organization select deptName from Employee where sex = 'Male' group by deptName having avg (salary) > (select avg (salary) from Employee) Here we are going to get the name of all departments in which the average salary of male employees is greater than the average salary of all employees in the company. shekhar chauhan answered Jun 17, 2016 shekhar chauhan comment Share Follow 0 reply Please log in or register to add a comment.