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 Databases databases sql + – CKgurav asked Jan 1, 2016 CKgurav 1.3k views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply monanshi commented Jan 1, 2016 reply Follow Share I think all the aggregate functions ignore null values before there application. So, 300,3 must be the answer? 1 votes 1 votes CKgurav commented Jan 1, 2016 reply Follow Share As per Korth "In general, aggregate functions treat nulls according to the following rule: All aggregate functions except count(*) ignore null values in their input collection". And yes, given answer for this question is 300,3. 0 votes 0 votes pramod commented Jan 1, 2016 reply Follow Share ANS : 300 ,3 you can refer here. http://www.sqlsnippets.com/en/topic-12656.html 0 votes 0 votes 5a1n1amarjeet commented Feb 28, 2021 reply Follow Share Refer https://gateoverflow.in/228692/count-takes-null-or-not 0 votes 0 votes Please log in or register to add a comment.
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 Tendua answered Jan 1, 2016 • selected Jan 27, 2016 by Pooja Palod Tendua comment Share Follow See all 0 reply Please log in or register to add a comment.