update tbFoo set BBG_ticker = substring(BBG_ticker, 1, charindex('-', BBG_ticker) - 1) + ' ' + substring(BBG_ticker, charindex('-', BBG_ticker)+1, LEN(BBG_ticker) - charindex('-', BBG_ticker))
Does that seem like overkill to anyone else? Let's compare it to Python...
BBG_ticker.replace("-"," ",1)
No comments:
Post a Comment