declare @StartRange int
declare @EndRange int
set @StartRange = 1
set @EndRange = 3
select *
from TestData
WHERE Case WHEN ISNUMERIC(Value) = 0 THEN 0
WHEN Value IS NULL THEN 0
WHEN Value = '' THEN 0
WHEN CONVERT(int, Value) BETWEEN @StartRange AND @EndRange THEN 1
END = 1