Computer Science · Database Management Systems
Consider the table student (rollno, name, sex, mark, deptname). Consider the SQL query: SELECT deptname FROM student WHERE sex = 'F' GROUP BY deptname HAVING AVG(mark) > (SELECT AVG(mark) FROM student); What does this query return?
- 1Department names where every female student scored higher than the overall average mark.
- 2Department names where the average mark of female students is greater than the average mark of all male students.
- 3Department names where the average mark of female students is greater than the average mark of all students.✓
- 4Department names where the average mark of female students is greater than the average mark of all female students.
Correct answer
Department names where the average mark of female students is greater than the average mark of all students.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Database Management Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Management Systems