1.

Let us say that we have a Student Database in which we have the details of the students like their names, address, attendance percentage, etc. Now we run an SQL Query that says: SELECT AVG ATTENDANCE FROM STUDENTS.

Answer»

Can you tell me any issues that may be here?

Yes, there might be an ISSUE. For instance, if there is such a case where we have set that the ATTENDANCE of any student cannot be NULL and at the same time we have some students in the table whose attendance we don’t know, the AVG FUNCTION will calculate these students as well. Hence, we will get an answer but, it might not be correct.



Discussion

No Comment Found