sql - Use a Select Statement within a wildcard where clause -


Working in MS SQL 2005 and I want to use a selection statement within a wildcard where the section is such that:

table Select ID ID / ID>

like '% SELECT ID table_1%' from table id, I am looking for product ID within a large part of the DD. The selection statement in the wildcard section will return 50 + rows. The above statement is not the way to go clearly. Any suggestions?

You can join and create similar strings based on Table 2. Include table_1 t1 INNER with