Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Filter before space

Author  Topic 

lane0618
Posting Yak Master

134 Posts

Posted - 2002-08-12 : 17:27:10
I have a description field like this:

FK899 CHAIN
6J7 BELT
45KJI56 DRIVER

I want to filter out everything before the space (i.e. to get chain from FK899 CHAIN). How can I do this?

Thanks,
Lane



robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-08-12 : 17:37:43
SELECT SubString(description, CharIndex(' ', description)+1, 8000)
FROM myTable

Go to Top of Page

lane0618
Posting Yak Master

134 Posts

Posted - 2002-08-12 : 17:54:15
Thanks

Go to Top of Page
   

- Advertisement -