Colum2
Karim_bk Karim_bk Karim_bk
Want result Karim
Advertisement
Answer
This should work
select top 10 Lastname, LEFT(Lastname, LEN(Lastname) - 3) as TrimmedVersion from tablename
Colum2
Karim_bk Karim_bk Karim_bk
Want result Karim
This should work
select top 10 Lastname, LEFT(Lastname, LEN(Lastname) - 3) as TrimmedVersion from tablename