I got the following entry in my database:
images/test.jpg
I want to trim the entry so I get: test
test
So basically, I want
use the following function
left(@test, charindex('/', @test) - 1)