SQL

Solve problem and optimise the query for DB.

LIKE is more specific and try to study more.