RTRIM
The RTRIM function returns the given string without any trailing spaces.
Syntax
RTRIM(<string> [,<remove_set>])
Description
When given a string, the RTRIM function returns the string with all trailing spaces removed.
If you specify a string of characters in <remove_set>, RTRIM removes all the characters contained in <remove_set> in order, from the end of the string. This process continues until the function finds a character not in the <remove_set>.