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
You can try this:
Declare @test varchar(100)='images/test.jpg' Select REPLACE(RIGHT(@test,charindex('/',reverse(@test))-1),'.jpg','')