Q1:
2025: 30 May Shift 2
Common (CS/IP)
SQL
Medium
Common
Table: 'STUDENT'
| rollnumber | name | course |
|---|---|---|
| 1 | Ajay | Science |
| 2 | Ankita | Commerce |
| 3 | Anmol | Science |
| 4 | Bharti | Science |
| 5 | Karan | Commerce |
| 6 | Mohit | Arts |
Consider the given query:
SELECT COURSE, COUNT(*) FROM STUDENT GROUP BY COURSE HAVING COURSE="Science";
What is the use of the 'HAVING' clause in the above query?