I feel that i should know how to do this but the ways i have tried don't work;
Code:
SELECT linkref
FROM Derivedaddresses
WHERE right(linkref,1) IS NUMERIC
SELECT linkref
FROM Derivedaddresses
WHERE ISNUMERIC(right(linkref,1))
linkref is a varchar field, and has both Alpha ~& numeric characters in it.
I want to select all records where the last character of LinkRef is a number.
I Know that Number based functions don't always work on Varchar fields, but i cannot Convert the Whole field as it also has letters in it.
I tried using the convert function as shown below
Code:
SELECT linkref
FROM Derivedaddresses
WHERE ISNUMERIC(CONVERT(INT,right(linkref,1)))
but this doen't work either. Anybody got a better way (preferably that works!)
-Richard