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)
 Like statement - Urgent

Author  Topic 

gurusamy.senthil
Yak Posting Veteran

65 Posts

Posted - 2008-07-18 : 06:11:40
Is there any to have a Like statement in the select subquery?. For example

"Select Task from table where task like (select t1 from discipline)"

Also anyways to introduce the % before and after the retrieving values.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-18 : 06:30:54
do you mean this

select m.Task
from table m
inner join discipline t
on m.task like '%'+t.t1+'%'
Go to Top of Page

gurusamy.senthil
Yak Posting Veteran

65 Posts

Posted - 2008-07-18 : 06:48:24
Eventhough my scenerio is something, this works good. Thank you.
Go to Top of Page
   

- Advertisement -