sql server substring
snippet in sql

sql server substring

user6410

SELECT SUBSTRING('SQL Tutorial', 1, 3) AS ExtractString;

grab part of a string sql

user8710

SELECT 
    SUBSTRING('SQLTutorial.org',
        POSITION('.' IN 'SQLTutorial.org'));

substring sql

user5566

SELECT SUBSTRING('SQL Tutorial', 4, (LENGTH('SQL Tutorial')) 
                 AS LastCharactersString;
//Result -> Tutorial