reading from right to left from string find first special characters in sql

Solutions on MaxInterview for reading from right to left from string find first special characters in sql by the best coders in the world

showing results for - "reading from right to left from string find first special characters in sql"
Kim
26 Aug 2019
1DECLARE @strvalue varchar(20) = 'SDADH/SDKDS/SD/UIO-123/WEA/456'
2SELECT REVERSE(SUBSTRING(REVERSE(@strvalue),0,CHARINDEX ('/',REVERSE(@strvalue))))