substring sql
snippet in sql

sql server substring

user8953

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

grab part of a string sql

user913

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

substring sql

user2664

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

substring sql

user6661

SELECT SUBSTR(first_name, 0 , 3)
From employees;

grab part of a string sql

user7088

SELECT SUBSTRING('SQLTutorial.org');