السلام عليكم
عندى سؤال عن صحة هذه الجملة
انا اريد استبعاد جملتين من جملة
فاريد منكن تصحيحها
select p.p_id,p.username,p.edu where p.gender='1' and p.religion_id='1' and p_id not in (select p_id from personal where p_id='5') and p_id not in (select pid_1,pid_2,act from contact inner join personal on contact.pid_1=personal.p_id where (pid_1='5' or pid_2='5') and act='bb')
ياريت تعطونى كل البدائل او مثال
