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
Right click on folder,can not open Properties and Sharing.
How Do I Deternine the Cause of a Faulting Application (msaccess)/module (msvcrt.dll)?
ASP pages don't show in some places in our intranet
executing functions from update query
Flash 8 Drag and Drop Quiz Question
Sharepoint not sharing port80 with IIS Default WEbsite
CFCHART not showing up in my browser. Please help
AJAX TabContainer and Button Clicks
CPU fan only has 3 pins, but motherboard has 4 pin connector Socket AM2
Exchnage server 2003 mail issue