← 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?
- A.name LIKE '%sha'
- B.name LIKE '%sh%'
- C.name LIKE 'Ash%'
- 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 →