Management & CommerceHardBusiness analyst · SQL test

A column holds the names Sara, Raman, Ria, Kavya and Ana. How many of them match LIKE '%a_' (assume a case-insensitive comparison)?

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

Correct answer: A. 1

'%a_' requires 'a' as the second-last character followed by exactly one more character. Only Raman (…a-n) qualifies. Sara, Ria, Kavya and Ana all end in 'a', which would match '%a', not '%a_'.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic