I have a result set that I want to trim a 2 digit suffix from. The strings will always be of varying lengths, but the suffixes will always be two digits separated by '-'.
Example:
APPTR-W302-01
NRSB-8920-09
Right now I am using the following. This is a hack because the '20' parameter is arbitrary.
REVERSE(SUBSTRING(REVERSE(COURSENAME),4,20))
Is there a better way?