I have a read only database. where i want to compare two string. But in the database some column value name has included some special character but i want to compare another string with this string without special character.
For example, In DB the column value name is BMW 3-SERIES
. And i have another string BMW3SERIES
. So, i want to remove -
and space
then compare two string in a where condition. Is both string equal or not ?
I am stuck how to remove special characters from model_name
.
SELECT * FROM VENDOR WHERE model_name = "BMW3SERIES"
What should be the query?