RIGHT

Description

Returns the right part of a character string with the specified number of characters. (RIGHT in Transact-SQL).

Sample Source Pattern

Syntax

RIGHT ( character_expression , integer_expression )  

Examples

Code:

IN -> SQLServer_01.sql
SELECT RIGHT('John Smith', 5) AS LAST_NAME;

Output:

   LAST_NAME|      
------------+
       Smith|   

Last updated