Check out example codes for "sql server substring". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com