I want to find the index of the last character /, but the problem is that it
LEFT(target, LEN(target) - CHARINDEX('/', REVERSE(target)))
doesn’t work, because the row in the target column has many space characters at the end, and the function charindexincludes spaces, but it lendoesn’t work.
Is there any other function to replace one of them?
source
share