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 2005 Forums
 Transact-SQL (2005)
 Select

Author  Topic 

shapper
Constraint Violating Yak Guru

450 Posts

Posted - 2007-03-23 : 15:51:45
Hello,

I have a table where one of the columns is named Labels and holds, for each record, something like:

"Net,VB,New York"

Just like keywords.

How can I select the records which contains for example the work "Net"?

Thanks,
Miguel

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2007-03-23 : 17:21:13
SELECT *
FROM yourtable
WHERE Labels LIKE '%Net%'

Look up the LIKE operator in Books Online for more.
Go to Top of Page
   

- Advertisement -