Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have one column values in sql table as
Name= 32456 Mr Adam Jones
I need to get Name= Mr Adam Jones in Straight table. Could anyone help me how to write expression or script to get obly name part.
Thanks.
Please can anyone help me
Hi
Use PurgeChar, as below;
Load
PurgeChar(Name, '0123456789') as Name
Resident Name;
Let me know how you get on.
Regards
Steve
Look in help for Purgechar()
Hi Amelia,
Please find attachment.
Hope this will help.
Regards,
Adeel
try:
mid('32456 Mr Adam Jones',index('32456 Mr Adam Jones',' ',1),index('32456 Mr Adam Jones',' ',-1))
=purgechar ('32456 Mr Adam Jones','1234567890')
Hi,
Use purgechar ()
purgechar ( 'a1b2c3','123' ) returns 'abc'
HTH
Sushil
You can achieve your needs in several ways:
1. using KeepChar or PurgeChar functions.
e.g. trim(purgechar ( Name,'0123456789' )) returns 'Mr Adam Jones'
2. if the prefix has a fixed lenght you can use the right function
e.g. right(name,len(name)-6) returns 'Mr Adam Jones'
Amelia:
i think the simplest way to achieve it is :
Trim(PurgeChar(Name,'0123456789'))
where Name is a Fieldname or Variable
Regards
Hi
You can use Purgechar function
Purgechar('apple123','123') will return 'apple'