Home Forums SQL Server 2008 SQL Server Newbies Get 1st Word in the string RE: Get 1st Word in the string
gbritton1
SSCertifiable
Points: 6522
More actions
May 1, 2014 at 9:29 am
#1710132
Here's an approach using Chris Morris Pattern Splitter:
select Delivery_Site, firstword.Item
from p
cross apply (
select top 1 * from dbo.PatternSplitCM(Delivery_Site, '%[a-z0-9]%')
where Matched = 1
order by ItemNumber
) firstword
[/url]