1,286 views
0 votes
0 votes

How aggrigate functions in query will behave in data contains NULL values.

I think answer should be D as all aggrigatre functions EXCEPT count will ignore NULL values. 

so, AVG will be 300 and count will be 4

1 Answer

Best answer
1 votes
1 votes
300 , 3 /. how avg works

avg = sum( marks) / count(marks) . = count ignore null values . so count marks gives 3

so 300

and count ( mobile number) = 3
selected by

Related questions

0 votes
0 votes
4 answers
2
ShiveshRoy asked Apr 1, 2016
2,173 views
What will COUNT(*) returns if all the collection has only null values???
0 votes
0 votes
0 answers
3
Tuhin Dutta asked Dec 15, 2017
420 views
Student tableROLLNONAMEMARKS1MARKS21T50302S70993DNULL10NULLNULL78NULLNULLNULLNULLNULLa) select count(MARKS1) from student;b) select count(*) from student;