I would like to get a substring 403162 from the given string Praveen(403162) in sql?
SELECT SUBSTRING(column_name, CHARINDEX('(', column_name)+1, CHARINDEX(')', column_name)-CHARINDEX('(', column_name)-1) from table_name
DEMO