I want to pass one clm_id and want the data from table which contain that clm_id like i pass 2012(clm_id) and want output data which contain 2012 in comma sperated value also.
What i want is that in 1st table there is clm_id which is repeated i want the data which id having repeated value including in comma separated value.
like
id clm_id
1 2011,2012
2 2012,2013
3 2012
output want :
id clm_id
1 2012
2 2012
3 2012
like id(1,2,3) that contain 2012 clm_id
i have query like
SELECT *
FROM table1
WHERE ( clm_id in ('2012'))
but not get value from comma separated value