Computer AwarenessVery hardIBPS SO IT Officer

A column Bonus holds the values 10, 20, NULL and 30 in four rows. What does SELECT AVG(Bonus) return?

  1. A. 20
  2. B. 15
  3. C. NULL
  4. D. 60

Correct answer: A. 20

Aggregate functions skip NULLs, so AVG = (10 + 20 + 30) ÷ 3 = 20. Treating NULL as 0 and dividing by 4 gives the trap 15.

हिंदी में

चार पंक्तियों में Bonus स्तंभ के मान 10, 20, NULL और 30 हैं। SELECT AVG(Bonus) क्या लौटाता है?

  1. A. 20
  2. B. 15
  3. C. NULL
  4. D. 60

उत्तर: A. समुच्चय फ़ंक्शन NULL को छोड़ देते हैं, इसलिए AVG = (10 + 20 + 30) ÷ 3 = 20। NULL को 0 मानकर 4 से भाग देने पर जाल वाला उत्तर 15 आता है।

More Computer Awareness questions

Exams that ask this topic