Hi all,
I have used replace to remove unwanted character in my join. It works and get the results I want but is there a more elegant or efficent way to do it?
[SQL]
select *
from xxxx.yyyy s
inner join xxx.vvvvvv e
on s.member_number = Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(admin_member_id,'a',''),'k',''),'s',''),'b',''),'l',''),'m',''),'I',''),'c',''),'q','')
[/SQL]
I have used replace to remove unwanted character in my join. It works and get the results I want but is there a more elegant or efficent way to do it?
[SQL]
select *
from xxxx.yyyy s
inner join xxx.vvvvvv e
on s.member_number = Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(admin_member_id,'a',''),'k',''),'s',''),'b',''),'l',''),'m',''),'I',''),'c',''),'q','')
[/SQL]