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
Windows 2000 Cryptographic service
Stopping and stopping Service from the command line
embed an Access report inside an email
how to kill process in widows where task manager disabled !
Where is the Content Editor web part?
Migrating Mailboxes
Google Checkout - Can I automatically return to my site after checkout completes.
What do I do about those exclamation points and unwanted line breaks?
Magento - Disabling the Customer Registration Form
MMC snap in error while opening AD icon or ESM in exchange server 2003