select * from grids gg Join Contents CC ON GG.ContentID = CC.ContentID where cc.contentid in (select contentID from rousages) And cast(Data as varchar(max)) like '%True%'