Reputation: 69
I'm trying to figure out how to just show the second word in the vendor name, but I keep getting an error with the following code:
SELECT SUBSTR(
SUBSTR(vendor_name,CHARINDEX(' ',vendor_name)+1,len(vendor_name)),1,CHARINDEX(' ',
SUBSTR(vendor_name,CHARINDEX(' ',vendor_name)+1,len(vendor_name)))
)
FROM vendors
Can someone help please
Upvotes: 2
Views: 7923