🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Indexing: all 10 questions

Quiz: Indexing · Question 7 of 10

Which LIKE condition can usually use an index on name?

Which LIKE condition can usually use an index on name?

  1. A.name LIKE '%sha'
  2. B.name LIKE '%sh%'
  3. C.name LIKE 'Ash%'
  4. D.LOWER(name) LIKE 'ash%'
Answer & explanation

Correct answer: name LIKE 'Ash%'

A fixed prefix lets the database jump into the sorted index; a leading % does not.

Can you get the rest right without peeking?

Take the timed Quiz: Indexing quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →