select REPLACE(comments,substring(comments,
charindex('statement',comments), LEN(comments)),'')
from Customer
where charindex('statement',comments) <>0
I want to replace only "statement" from column comments using Replace function but it replaces records to ' ' which doesn't have "Statement" string in it.