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)
 Searching

Author  Topic 

jrockfl
Posting Yak Master

223 Posts

Posted - 2008-01-24 : 10:56:33
What is a way to efficiently seach a column for data that may or may not have dashes.
For example, a part number

100-100

A user might enter 100, 100-100 or 100100 and I would need th part number to be returned.
Also, how time consuming is using a sort by?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-01-24 : 11:24:40
WHERE CHARINDEX('-',Col) >0
Go to Top of Page
   

- Advertisement -