how to extract substring using index in ms sql code example
Example 1: grab part of a string sql
SELECT
SUBSTRING('SQLTutorial.org',
POSITION('.' IN 'SQLTutorial.org'));
Example 2: grab part of a string sql
SELECT SUBSTRING('SQLTutorial.org');