RTRIM deletes all of the characters specified in the expression trim_chars from the right border of string.
RTRIM
trim_chars
string
rtrim::=
If parameter trim_chars is not specified, spaces are deleted.
SELECT RTRIM('abcdef','afe');