tags:

views:

25

answers:

2

Hi,

I have to write an query something like this

select * from table where title like '% select from tableb %'

this select from tableb is a query and not a string

+3  A: 

You've basically got it:

You can do this: SELECT * FROM table where title like (SELECT column FROM tableb WHERE id=case)

Crowe T. Robot
A: 

i found it

select * from table where title like '%'+ select from tableb +'%'

harshit