Given Relation: 'STUDENT'
SNO SNAME MARKS 1 Amit 20 2 Karuna 40 3 Kavita NULL 4 Anuj 30
Find the value of :
SELECT AVG(MARKS) FROM STUDENT;
Given Relation: 'STUDENT'
| SNO | SNAME | MARKS |
|---|---|---|
| 1 | Amit | 20 |
| 2 | Karuna | 40 |
| 3 | Kavita | NULL |
| 4 | Anuj | 30 |
Find the value of :
SELECT AVG(MARKS) FROM STUDENT;
Solution
✅ Correct Option: 1
AVG ignores NULL values, so Kavita's row is left out of both the sum and the count. Only 3 marks are used: 20, 40 and 30.
Related questions:
2025: 3 June Shift 2
2026: 21 May Shift 1
2026: 29 May Shift 1
2025: 20 May Shift 1