Question - What is a LIKE statement? Explain % and _ in LIKE.
Answer -
While using filters in commands like SELECT, UPDATE, and DELETE, conditions might require a pattern to detect. LIKE is used to do just that. LIKE has two wildcard characters, namely % (percentage) and _ (underscore). Percentage(%) matches a string of characters, while underscore matches a single character.
For example, %t will detect trees and tea both. However, _t will only detect one extra character, i.e., strings like ti or te.