Microsoft
Software
Hardware
Network
Question : Find first word in string
I have a field that could contain the following entries:
Table (Vendor)
VendorName
----------------
Fusion Limited
Fusion Ltd
Fusion, Ltd
Is it possible to have a select statement where it selects the first word in the string, before the space and before the comma? Is this possible?
Answer : Find first word in string
On reflection, mine can be simplified:
SELECT VendorName, LEFT(VendorName, PATINDEX('%[^a-z0-9]%', VendorName + '|') - 1) AS FirstWord
FROM SomeTable
Random Solutions
Creating a bash script which accepts parameters
How to test 2CheckOut.com
Reply messages with small fonts
Grant Users ADMIN Rights Automaticaly; Install SW/Run Scripts; Remove ADMIN Rights Automatically
I is it possible to fix a corrupted .dat file?
Forward a copy of Email from Outlook 2003 to another email address
How to integrate blog posts from your blog into a main index page of a website w/o an Iframe?
Stored Procedure - DTS call
Javascript expert
Domino API - Need to get document Author