Question discussion

Which of the following strings does NOT match the SQL pattern LIKE 'A_%a'?

1708Medium DSSSB TGT Computer Science 0 replies

Which of the following strings does NOT match the SQL pattern LIKE 'A_%a'?

  • AAa
  • BAaa
  • CAna
  • DAlpha
Correct answer: A

Explanation

The pattern needs 'A', then exactly one character, then any string, then a final 'a', so at least 3 characters; 'Aa' has only 2.

Discussion 0

Nobody has replied yet. Start the discussion!