I have a varchar column "qty" defined in a table "order" which has 2 rows of data as follows
| qty |
|---|
| 3 |
| 3 1/9 |
When I try to use select query as
select * from order where qty like '3 %';
both rows which have qty 3 and 3 1/9 are returned, whereas I thought I would get only 3 1/9 which matches my lookup in like '3 %',
I even tried with trim(qty) like '3 %' also with the same result; I get both records.
There is no space after 3 in the first row.
Not sure why? Can someone help me here?