MYSQL will return all rows with ItemNumber with number greater than equal to 0.5 and less than equal to -0.5. He considers the whole number greater >= +/-0.5 as true. A sentence whereonly works with true or false.
true >= -0.5 > false < 0.5 <= true
, mysql , >= +/-0.5 1 (true). true .
SELECT * FROM items im WHERE 1; // will return all rows.
SELECT * FROM items im WHERE 0.5; // will return all rows.
SELECT * FROM items im WHERE 0.4; // will return nothing.
SELECT * FROM items im WHERE 1 and 0.2; // will return nothing.
SELECT * FROM items im WHERE 0.3 or 0.5; // will return all rows.