Compara solo cuando es numérico
select * from student
where
(
case when ISNUMERIC( linerevnum )
then cast (linerevnum as int)
else null
end ) = 1
o simple:
select * from student
linerevnum = '1'
Compara solo cuando es numérico
select * from student
where
(
case when ISNUMERIC( linerevnum )
then cast (linerevnum as int)
else null
end ) = 1
o simple:
select * from student
linerevnum = '1'