If a price in a row is 38.03
, then the following search restrictions should all return the row containg the result.
WHERE price >= '38.02' AND price <= '38.03'
(This works)
WHERE price >= '20' AND price <= '100'
(This works)
WHERE price >= '38.03' AND price <= '38.03'
(This doesn't work)
WHERE price >= '38.03' AND price <= '100'
(This doesn't work)
WHERE price >= '38.03'
(This doesn't work)
WHERE price <= '38.03'
(This works)
The price is stored as a float in the DB.
So basically, <=
is working whereas >=
is not. Is there a reason why that could be?