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
DataList - need dynamic ImageUrl for an <asp:Image> tag
AJAX post returning 500 Internal Server Error on Live Server
ID File Creation in Lotus notes
RHEL How to set the IP addy in KNOME or command line
Direct X 10.1 vs Direct X 11, Windows XP SP3 vs Windows 7
mysql stored proc parameter
OMA and OWA
"Invalid Argument provided." Error when Generating PDFs in VB.NET Application via Crystal Reports Viewer
Will an AGP Video Card work in a PCI Express Slot?
Excel VBA Select All File Types From a Specified Folder