troubleshooting Question

Double REPLACE on same field in SQL

Avatar of ITmonkeys
ITmonkeys asked on
Microsoft SQL ServerMicrosoft ExcelSQL
4 Comments2 Solutions212 ViewsLast Modified:
I'm using a SQL query to populate an excel spreadsheet.  One of my fields comes back as this:

Four High Risk Exposure
Three Medium Risk Exposure
Two Low Risk Exposure

I need it to read High, Medium or Low.  I've got a REPLACE query running on it, but thtat will only take out the beginning or the last part.  Bit stumped as to perfoming a double replace or trimming.  This is my SQL query I'm currently running:

SELECT      Risk.RiskTitle, OrganizationCycleMap.OrganizationElement, Risk.RiskType, REPLACE(Risk.RiskSignificance, ' Risk Exposure','') , Risk.RiskRating, Risk.RiskDescription, Controls.Control_Ref
FROM         xxxxx

But that leaves it as Four High, Three Medium, Two Low.  

Any clues?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 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 2 Answers and 4 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