I've used the top voted answer from here to check if a cell value is an integer. But I also need to do a range check on it.
SELECT * FROM Table
WHERE (dbo.IsInteger(FieldName) = 1) AND FieldName > 400 AND FieldName < 500
But this returns a conversion error, as some of the cells in the column contains text. So, is it possible to get a subset, that is only results from the IsInteger
query, and then do a range check on the result?