I have to just select the values from outer query based on the result set of inner query.
Table 1:
row 1 : abc
row 2: def
Table 2:
row 1: column name doc_id values = 1,2
(comma separated values)
select * from table 1 where id IN (select doc_id from table 2)
but it shows me only one row, it has to show two rows.