We have a table of names in the format 'John Smith' etc
We need to be able to trim this to the first 6 characters, not including spaces and convert to lowercase if possible.
I've got the 1st 6 characters OK but wondered if there's a way to get rid of the spaces in the middle? e.g.
select left ([fullname],6) for 'John Smith' gives 'John S' when I need 'johnsm'
Any ideas?
Thanks
We need to be able to trim this to the first 6 characters, not including spaces and convert to lowercase if possible.
I've got the 1st 6 characters OK but wondered if there's a way to get rid of the spaces in the middle? e.g.
select left ([fullname],6) for 'John Smith' gives 'John S' when I need 'johnsm'
Any ideas?
Thanks