I need to extract number from a string column.The length of number in string value is not fixed but it is ended with a special symbol underscore(_).I have tried with Substring but unsuccessful.Please suggest,below sample data for the column
Example String :
FilePath
1002001_Inv_QCR.tiff
100101_Inv_MAN.Jpg
SELECT SUBSTRING(Filepath,1,6) from Tblfileinfo