Microsoft
Software
Hardware
Network
Question : SQL: Pull name from substring .
I am looking to pull out name from a substring, have tried a couple idea's but getting held up on the first name:
Displayed as: Doe, Joseph Moe (Joseph)
Result: Joseph Doe
Any help that can be provided would be much appreciated!
Answer : SQL: Pull name from substring .
SELECT OriginalName, LEFT(OriginalName, CHARINDEX(',', OriginalName) - 1) + ' ' +
SUBSTRING(OriginalName, CHARINDEX('(', OriginalName) + 1, CHARINDEX(')', OriginalName) - CHARINDEX('(', OriginalName) - 1) AS Redone
FROM SomeTable
Random Solutions
asp.net page to test database connectivity
windows 2008 MYSQL5.1 and PHP5
strange error
Cast Question for Crystal Reports
Emc Networker mminfo command
How can I get AutoMySQLBackup to email logs?
VB.NET executable error on Excel SaveAs method when run or submitted by SSIS.
Check to see if a table has a certain value, MS Access 2003
Cannot install programs as Administrator in Windows 7
What's the purpose of "MAKEFILE" macro in a makefile?