I want to find an index of the last /
character, but the problem is that
LEFT(target, LEN(target) - CHARINDEX('/', REVERSE(target)))
doesn't work because the string in target column has a lot of space characters in the end and the charindex
function includes the spaces, but len
doesn't.
Is there any other function to replace one of them?