the problem of the database structure here is:-
only the records with paper_exp_mod_con_id from paper_exp_mod_poe_con table with the paper_exp_mod_poe_con_ids coming from statistics table which has sign_level not equal to 'n.s.' should be returned and the result here is
SQL:-
SELECT paper_exp_mod_con_id FROM schmitzs.paper_exp_mod_poe_con
WHERE paper_exp_mod_poe_con_id in (SELECT paper_exp_mod_poe_con_id FROM schmitzs.statistics WHERE sign_level <> 'n.s.' GROUP BY paper_exp_mod_poe_con_id) GROUP BY paper_exp_mod_con_id";
RESULT:-
PAPER_EXP_MOD_CON_ID
1
3
4
5
6
7
then this id is passed to the paper_exp_mod_con table to get the m_rid one by one and the result obtained here is:-
SQL:-
SELECT m_rid FROM schmitzs.paper_exp_mod_con WHERE paper_exp_mod_con_id = ".$paper_exp_mod_con_id."";
RESULT:-
PAPER_EXP_MOD_CON_ID M-RID
1 3
3 4
4 20
5 25
6 25
7 26
so the problem here is m_rid with 25 is returned twice but only once I need it.
Help me in this regard.
Ramya