Returns a specified number of characters on the left end of a character string.
left(character_expression, integer_expression)
use pubs select left(title, 5) from titles order by title_id ----- The B Cooki You C ..... Sushi (18 row(s) affected)
select left("abcdef", 2) --------- ab (1 row(s) affected)
character_expression can be of any datatype (except text or image) that can be implicitly converted to varchar or nvarchar. character_expression can be a constant, variable, or a column name. You can explicitly convert character_expression using convert.
left is equivalent to substring(character_expression, 1, integer_expression).
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute left.