RIGHT
Returns the part of a character string starting a specified number of integer_expression characters from the right.
Example
CREATE TABLE #CustomerNames ( CustomerId int, CustomerName varchar(25) ) INSERT INTO #CustomerNames SELECT 1, 'Bob Johnson' UNION ALL SELECT 2, 'Al Riley' UNION ALL SELECT 3, 'Mike Henry' SELECT RIGHT(CustomerName, 5) FROM #CustomerNames
Results
hnson
Riley
Henry