if you dont want @mat table to be used, use query like
select *
from @product
where ',' + REPLACE(type_mat,' ','') + ',' LIKE '%,2,%'
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/