The STUDENT information in a university is stored in the relation…

The STUDENT information in a university is stored in the relation STUDENT(Name, Sex, Marks, Dept_Name).

Consider the following SQL query:

SELECT Dept_Name
FROM STUDENT
WHERE SEX = 'M'
GROUP BY Dept_Name
HAVING avg(Marks) > (SELECT avg(Marks) FROM STUDENT);

This query returns the name of every department for which:

  1. A.

    The average marks of the male students are more than the average marks of the students in the same department

  2. B.

    The average marks of the male students are more than the average marks of the students in the university

  3. C.

    The average marks of the male students are more than the average marks of the male students in the university

  4. D.

    The average marks of the students are more than the average marks of the male students in the university

Attempted by 113 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…