tsql - How can I remove certain chars before the space in T-SQL? -


i'm trying without luck come method pass

bruno miguel alexandre b. miguel alexandre

and

bruno alexandre b. alexandre

just in sql can make part of big query in store procedure

can provide me help? function guys might have?

much appreciated.

take 1st character + space. 8000 avoid len calls otherwise

left(myvalue, 1) + '.' + substring(myvalue, charindex(' ', myvalue), 8000) 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -