how to extract data from a string in sql code example Example: sql server substring SELECT SUBSTRING('SQL Tutorial', 1, 3) AS ExtractString;