Trimming a string

edojan

Registered User.
Local time
Today, 15:23
Joined
Dec 19, 2006
Messages
26
Hi

I have a table audit

AUDIT_QUEUE
RESC
Pre Ex
COB
RESC-x
Pre E-x-x-x
COB-x-x-x-x

What i want is a query or code so that it reads the field and strips away all "-x" there might be more then 1 instance of -x in there so need to remove all of them. How do i do this?

Thanks
 
If the -x is always at the end of the string you just need to loop round removing the -x each time until there is none left
 
Look into using the Replace function to specify the -x and replace with ""
 

Users who are viewing this thread

Back
Top Bottom