@Kasani007 , another way of doing the same
DECLARE @T TABLE(ID INT IDENTITY,STUDENTNAME VARCHAR(50),SUBJECTIDS VARCHAR(50))
INSERT INTO @T VALUES('Saketh', '1,5,10'),('Vaishnav','6,10,15'),('Revanth','2,4,9')
SELECT *
FROM @T
WHERE CHARINDEX('10',SUBJECTIDS) > 0
/*
ID STUDENTNAME SUBJECTIDS
1 Saketh 1,5,10
2 Vaishnav 6,10,15
*/
--
Thanks & Regards,
RNA Team
Kasani007, if this helps please login to Mark As Answer. | Alert Moderator