troubleshooting Question

Find and Replace (Update) specific word or phrase in a SQL field

Avatar of tkoty
tkotyFlag for United States of America asked on
Microsoft SQL Server
6 Comments1 Solution573 ViewsLast Modified:
I'm looking to do a find and replace were I need to change/update specific word or phrase in a SQL field.
Example 1:
Field data:  Excellent/1st tier for "Conveys interest & empathy to customer situation" is defined as:

Example 2: In a service environment, an agent would receive an excellent/1st tier rating for Agent effectively transitions without hesitation when the following occurs:

Replace/Update 'excellent' with 'Meets Expectations"

This is the current query I'm using but it looks at the entire field:
UPDATE contentDetail SET question = REPLACE (question, 'Excellent', 'Meets Expectations')
WHERE question LIKE '%Excellent%'
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros