pid fid
6 19
7 19
8 19
9 19
7 30
6 30
I have a table like this. I want to select duplicate rows,
when I'm sending 19, 30 ids Using an IN clause like:
Select pid from tablename where fid IN (19,30);
I want these results
pid
7
6
Is there any mysql statement to get these results?