Scalar. Returns a specified number of characters from a specific position within a given string.
The following example uses the SUBSTR function to select the fifth and sixth characters of the value in the LastName column:
INSERT INTO OutStream SELECT SUBSTR(Employees.LastName, 5, 2) FROM Employees;
If the value were "Johnson", the returned value would be "so".