The RIGHT function returns a sub-string of specified length from a given source string, beginning at the right-most character of the source string and counting back towards the beginning. The function takes two parameters. The first is the source string from which the sub-string is extracted. The second is the number of characters in the sub-string. If the specified number of characters is greater than the length of the source string, the entire source string is returned. If the specified number of characters specified is 0 or less, an empty string is returned.