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
 Transact-SQL (2000)
 LIKE in join

Author  Topic 

Danny__T
Starting Member

27 Posts

Posted - 2004-09-18 : 10:35:49
can I create a join using a LIKE statment?

E.g. I want to to join tables on

t1.keyword LIKE t2.profile

so if the word in t1.keyword is within the text in t2.profile then there will be a join?

Cheers

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-09-18 : 11:50:15
yeah, but it would probably be:
...
t2.profile like '%'+t1.keyword+'%'

Corey
Go to Top of Page
   

- Advertisement -