Management & CommerceVery hardBusiness 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). How many rows does SELECT order_id FROM orders WHERE amount < (SELECT AVG(amount) FROM orders); return?

  1. A. 3
  2. B. 4
  3. C. 2
  4. D. 5

Correct answer: B. 4

AVG ignores the NULL: 2,450/6 ≈ 408.33. Amounts below it: 300, 200, 350 and 400 → 4 rows. The NULL row is never returned, because NULL < x is unknown, not true. Treating NULL as 0 would make the average 350 and give only 2 rows.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic