I Tried
DELETE FROM installments
WHERE EXISTS (SELECT * FROM `installments`
JOIN student
ON installments.s_id=student.s_id
WHERE installments.curr_sem=3
AND student.bat_id=10 AND student.p_id=170 AND student.DeleteStatus=0);
but show error
#1093 - You can't specify target table 'installments' for update in FROM clause
Please help me