I have a table company with column customerID and I want every customer id from 80000 to 80999.
But the column customerID is varchar an some of them contain letters.
So, I must put customerID into ' ' and when I try this query:
select *
from company
where customerID between '80000' and '80999'
it returns also customerID 800 for example.
Any ideas how this issue can be solved?