how to replace only exact matched word in SqlServer.
please look on the image . I tried to replace all 'D' as "Completed" .
SELECT
REPLACE(status,'D','COMPLETED')as status from test
but it replaced all the 'D' in the status column.
but my expectation is i want only replace the word ' D'
The result should be like this
- READY - FRESH - READY - COMPLETED - COMPLETED - COMPLETED