Management & CommerceHardBusiness analyst · KPO · MBA placement pattern

Table orders(order_id, customer, region, amount) has 7 rows: (1, Asha, North, 500); (2, Ravi, South, 300); (3, Asha, North, 200); (4, Meena, East, NULL); (5, Ravi, South, 700); (6, John, North, 400); (7, Meena, East, 350). What does SELECT AVG(amount) FROM orders WHERE region = 'East'; return?

  1. A. 175
  2. B. 0
  3. C. 350
  4. D. NULL

Correct answer: C. 350

East has orders 4 (NULL) and 7 (350). AVG ignores NULLs, so it averages one value: 350. Treating NULL as 0 would give 175.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic