I'm trying to substring the last 3 digits from a column. Problem is, some of them have a random space at the end, which then only returns 2 of the 3 needed values from the column. Right now I have:
SELECT substr(infovalue, -3)
FROM TABLE
WHERE INFOCODE = 555
How can I get my statement to ignore the space at the end?
thanks!