Hi
I'm usint this sql to sort a varchar field, and i works.
but when just one row contains a letter the sql doesn't return any rows, until the data in the field is an integer again.
Is there a way to get it out anyway? - either excluding the one with letter or returning it.
Thanks
LHG
I'm usint this sql to sort a varchar field, and i works.
Code:
select field1, field2
from table
order by CAST(field1 AS INT)
but when just one row contains a letter the sql doesn't return any rows, until the data in the field is an integer again.
Is there a way to get it out anyway? - either excluding the one with letter or returning it.
Thanks
LHG