RIGHT

The function extracts a number of characters from a string (starting from right).

Syntax

RIGHT(string, number_of_chars)

Example

SELECT RIGHT(suppliername, 5) AS supplier FROM /shared/examples/ds_inventory/tutorial/suppliers