How can I make this select only the row with “1.4” if result has values “15.2”,”UNK”,”1.4″?
SELECT * FROM tbl WHERE result<4.0
(ideally something that works both for MSSQL and MySQL…)
Here is the ‘result’ column
CREATE TABLE IF NOT EXISTS `tbl` (
`result` varchar(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `tbl` (`result`) VALUES ('15.2'),('UNK'),('1.4');
1 Answer