I am using the following query to filter records from my table:
SELECT * FROM teacher_info WHERE teaching_locations in ('Salt Lake City');
It's returning an empty result even though I have the following values stored in the table in the teaching_locations
column: newyork,Salt Lake City,los angeles
.
I have tried using others values and it's working fine with other values except the values having whitespaces in between. For instance, the query is working fine if the column value is 'newyork
'.