I need to make a select
in sql server 2014
to the result of a subquery, example:
select * from tabela2 where codigo like ("1;3;4","3","1;2;5")
Where ( "1;3;4","3","1;2;5"
) is the result of the subquery ( select * from tabela1
)
in order to get the following result:
1
2
3
4
5