Check out example codes for "grab part of a string sql". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

SELECT SUBSTRING('SQLTutorial.org');

Learn ReactJs, React Native from akashmittal.com