select t1.no, t2.ID, t2.name from t1 inner join t2 on ','+t1.value+',' like '%,'+CAST(t2.id as varchar(10))+',%'