IgorMi (12/15/2013)
shashianireddy (12/15/2013)
again it shows error likeMsg 537, Level 16, State 5, Line 1
Invalid length parameter passed to the LEFT or SUBSTRING function.
Now corrected, pls check it.
select house_no
from test1
where
len(house_no)>=6 and
house_no between '4-12-1000' and '4-12-1500'
and SUBSTRING(house_no,6,10) not like '%[^0-9]%'
Igor Micev,My blog: www.igormicev.com