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
Interrupted windows update, low disk space
Problems with stored procedure and SELECT INTO
Unix update variable by position
Exchange 2000 Server no Sending out NDR's to users when the email address.
Can't access XP from Vista
Data Structure
ISO-8859-1
Remove Chinese Characters from Excel Spreadheets used as input
Data Execution Prevention Error
change duration of new flag in sharepoint 2.0