I have got some improper data with some of my rows due to which I am not able to search exactly.
I have values under my category_name column like below:
category_name
interior--
exterior
interior
due to -- at the end of some category names I am not able to get exact counts of a particular category
I am using below query
select count(id) from designs where category_name='interior'
how to ignore -- while matching in where clause
Trim the trailing
--from values using TRIM() function like below: